Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 15 of 15) sorted by relevance

/fs/ceph/
Dcaps.c135 struct ceph_cap *cap; in ceph_caps_finalize() local
139 cap = list_first_entry(&mdsc->caps_list, in ceph_caps_finalize()
141 list_del(&cap->caps_item); in ceph_caps_finalize()
142 kmem_cache_free(ceph_cap_cachep, cap); in ceph_caps_finalize()
168 struct ceph_cap *cap; in __ceph_unreserve_caps() local
178 cap = list_first_entry(&mdsc->caps_list, in __ceph_unreserve_caps()
180 list_del(&cap->caps_item); in __ceph_unreserve_caps()
181 kmem_cache_free(ceph_cap_cachep, cap); in __ceph_unreserve_caps()
204 struct ceph_cap *cap; in ceph_reserve_caps() local
229 cap = kmem_cache_alloc(ceph_cap_cachep, GFP_NOFS); in ceph_reserve_caps()
[all …]
Dmetric.c15 struct ceph_metric_cap *cap; in ceph_mdsc_send_metrics() local
27 len = sizeof(*head) + sizeof(*cap) + sizeof(*read) + sizeof(*write) in ceph_mdsc_send_metrics()
40 cap = (struct ceph_metric_cap *)(head + 1); in ceph_mdsc_send_metrics()
41 cap->type = cpu_to_le32(CLIENT_METRIC_TYPE_CAP_INFO); in ceph_mdsc_send_metrics()
42 cap->ver = 1; in ceph_mdsc_send_metrics()
43 cap->compat = 1; in ceph_mdsc_send_metrics()
44 cap->data_len = cpu_to_le32(sizeof(*cap) - 10); in ceph_mdsc_send_metrics()
45 cap->hit = cpu_to_le64(percpu_counter_sum(&mdsc->metric.i_caps_hit)); in ceph_mdsc_send_metrics()
46 cap->mis = cpu_to_le64(percpu_counter_sum(&mdsc->metric.i_caps_mis)); in ceph_mdsc_send_metrics()
47 cap->total = cpu_to_le64(nr_caps); in ceph_mdsc_send_metrics()
[all …]
Dmds_client.c1034 struct ceph_cap *cap; in __choose_mds() local
1153 cap = NULL; in __choose_mds()
1155 cap = ci->i_auth_cap; in __choose_mds()
1156 if (!cap && !RB_EMPTY_ROOT(&ci->i_caps)) in __choose_mds()
1157 cap = rb_entry(rb_first(&ci->i_caps), struct ceph_cap, ci_node); in __choose_mds()
1158 if (!cap) { in __choose_mds()
1163 mds = cap->session->s_mds; in __choose_mds()
1166 cap == ci->i_auth_cap ? "auth " : "", cap); in __choose_mds()
1502 struct ceph_cap *cap; in dispose_cap_releases() local
1504 cap = list_first_entry(dispose, struct ceph_cap, session_caps); in dispose_cap_releases()
[all …]
Ddebugfs.c212 static int caps_show_cb(struct inode *inode, struct ceph_cap *cap, void *p) in caps_show_cb() argument
217 cap->session->s_mds, in caps_show_cb()
218 ceph_cap_string(cap->issued), in caps_show_cb()
219 ceph_cap_string(cap->implemented)); in caps_show_cb()
Dinode.c767 info_caps = le32_to_cpu(info->cap.caps); in ceph_fill_inode()
809 ((info->cap.flags & CEPH_CAP_FLAG_AUTH) && in ceph_fill_inode()
882 if ((info->cap.flags & CEPH_CAP_FLAG_AUTH) && in ceph_fill_inode()
892 if (new_version || (info->cap.flags & CEPH_CAP_FLAG_AUTH)) { in ceph_fill_inode()
981 le64_to_cpu(info->cap.cap_id), in ceph_fill_inode()
983 le32_to_cpu(info->cap.wanted), in ceph_fill_inode()
984 le32_to_cpu(info->cap.seq), in ceph_fill_inode()
985 le32_to_cpu(info->cap.mseq), in ceph_fill_inode()
986 le64_to_cpu(info->cap.realm), in ceph_fill_inode()
987 info->cap.flags, &new_cap); in ceph_fill_inode()
[all …]
Dsuper.h702 struct ceph_cap *cap);
1106 unsigned cap, unsigned seq, u64 realmino, int flags,
1108 extern void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release);
1111 struct ceph_cap *cap);
Dfile.c608 in.cap.caps = in.cap.wanted = cpu_to_le32(CEPH_CAP_ALL_FILE); in ceph_finish_async_create()
609 in.cap.cap_id = cpu_to_le64(1); in ceph_finish_async_create()
610 in.cap.realm = cpu_to_le64(ci->i_snap_realm->ino); in ceph_finish_async_create()
611 in.cap.flags = CEPH_CAP_FLAG_AUTH; in ceph_finish_async_create()
Dmds_client.h532 struct ceph_cap *cap);
/fs/cifs/
Dconnect.c3846 __u64 cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in reset_cifs_unix_caps() local
3847 cifs_dbg(FYI, "unix caps which server supports %lld\n", cap); in reset_cifs_unix_caps()
3854 cap &= ~CIFS_UNIX_POSIX_ACL_CAP; in reset_cifs_unix_caps()
3856 if (cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) in reset_cifs_unix_caps()
3858 cap &= ~CIFS_UNIX_POSIX_PATHNAMES_CAP; in reset_cifs_unix_caps()
3859 } else if ((cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0) { in reset_cifs_unix_caps()
3865 if (cap & CIFS_UNIX_TRANSPORT_ENCRYPTION_MANDATORY_CAP) in reset_cifs_unix_caps()
3868 cap &= CIFS_UNIX_CAP_MASK; in reset_cifs_unix_caps()
3870 cap &= ~CIFS_UNIX_POSIX_ACL_CAP; in reset_cifs_unix_caps()
3871 else if (CIFS_UNIX_POSIX_ACL_CAP & cap) { in reset_cifs_unix_caps()
[all …]
Dsmbdirect.c1599 qp_attr.cap.max_send_wr = info->send_credit_target; in _smbd_get_connection()
1600 qp_attr.cap.max_recv_wr = info->receive_credit_max; in _smbd_get_connection()
1601 qp_attr.cap.max_send_sge = SMBDIRECT_MAX_SGE; in _smbd_get_connection()
1602 qp_attr.cap.max_recv_sge = SMBDIRECT_MAX_SGE; in _smbd_get_connection()
1603 qp_attr.cap.max_inline_data = 0; in _smbd_get_connection()
Dcifsproto.h343 __u64 cap);
Dcifssmb.c5343 CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap) in CIFSSMBSetFSUnixInfo() argument
5392 pSMB->ClientUnixCap = cpu_to_le64(cap); in CIFSSMBSetFSUnixInfo()
/fs/afs/
Dcmservice.c551 } cap; in SRXAFSCB_TellMeAboutYourself() member
566 reply.cap.capcount = htonl(1); in SRXAFSCB_TellMeAboutYourself()
567 reply.cap.caps[0] = htonl(AFS_CAP_ERROR_TRANSLATION); in SRXAFSCB_TellMeAboutYourself()
/fs/proc/
Darray.c312 a->cap[CAP_LAST_U32 - __capi], 8); in render_cap_t()
/fs/f2fs/
Df2fs.h2278 struct inode *inode, bool cap) in __allow_reserved_blocks() argument
2291 if (cap && capable(CAP_SYS_RESOURCE)) in __allow_reserved_blocks()