Home
last modified time | relevance | path

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

/fs/ceph/
Dcaps.c132 struct ceph_cap *cap; in ceph_caps_finalize() local
136 cap = list_first_entry(&mdsc->caps_list, in ceph_caps_finalize()
138 list_del(&cap->caps_item); in ceph_caps_finalize()
139 kmem_cache_free(ceph_cap_cachep, cap); in ceph_caps_finalize()
161 struct ceph_cap *cap; in ceph_reserve_caps() local
182 cap = kmem_cache_alloc(ceph_cap_cachep, GFP_NOFS); in ceph_reserve_caps()
183 if (!cap) in ceph_reserve_caps()
185 list_add(&cap->caps_item, &newcaps); in ceph_reserve_caps()
233 struct ceph_cap *cap = NULL; in ceph_get_cap() local
237 cap = kmem_cache_alloc(ceph_cap_cachep, GFP_NOFS); in ceph_get_cap()
[all …]
Dmds_client.c711 struct ceph_cap *cap; in __choose_mds() local
825 cap = NULL; in __choose_mds()
827 cap = ci->i_auth_cap; in __choose_mds()
828 if (!cap && !RB_EMPTY_ROOT(&ci->i_caps)) in __choose_mds()
829 cap = rb_entry(rb_first(&ci->i_caps), struct ceph_cap, ci_node); in __choose_mds()
830 if (!cap) { in __choose_mds()
835 mds = cap->session->s_mds; in __choose_mds()
838 cap == ci->i_auth_cap ? "auth " : "", cap); in __choose_mds()
1054 struct ceph_cap *cap; in cleanup_cap_releases() local
1056 cap = list_first_entry(&tmp_list, in cleanup_cap_releases()
[all …]
Dinode.c747 if (info->cap.caps && ceph_snap(inode) == CEPH_NOSNAP) in fill_inode()
780 ((info->cap.flags & CEPH_CAP_FLAG_AUTH) && in fill_inode()
786 new_issued = ~issued & le32_to_cpu(info->cap.caps); in fill_inode()
843 if ((info->cap.flags & CEPH_CAP_FLAG_AUTH) && in fill_inode()
928 if (info->cap.caps) { in fill_inode()
930 unsigned caps = le32_to_cpu(info->cap.caps); in fill_inode()
932 le64_to_cpu(info->cap.cap_id), in fill_inode()
934 le32_to_cpu(info->cap.wanted), in fill_inode()
935 le32_to_cpu(info->cap.seq), in fill_inode()
936 le32_to_cpu(info->cap.mseq), in fill_inode()
[all …]
Dsuper.h599 struct ceph_cap *cap);
916 unsigned cap, unsigned seq, u64 realmino, int flags,
918 extern void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release);
920 struct ceph_cap *cap);
/fs/cifs/
Dconnect.c3433 __u64 cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in reset_cifs_unix_caps() local
3434 cifs_dbg(FYI, "unix caps which server supports %lld\n", cap); in reset_cifs_unix_caps()
3441 cap &= ~CIFS_UNIX_POSIX_ACL_CAP; in reset_cifs_unix_caps()
3443 if (cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) in reset_cifs_unix_caps()
3445 cap &= ~CIFS_UNIX_POSIX_PATHNAMES_CAP; in reset_cifs_unix_caps()
3446 } else if ((cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0) { in reset_cifs_unix_caps()
3452 if (cap & CIFS_UNIX_TRANSPORT_ENCRYPTION_MANDATORY_CAP) in reset_cifs_unix_caps()
3455 cap &= CIFS_UNIX_CAP_MASK; in reset_cifs_unix_caps()
3457 cap &= ~CIFS_UNIX_POSIX_ACL_CAP; in reset_cifs_unix_caps()
3458 else if (CIFS_UNIX_POSIX_ACL_CAP & cap) { in reset_cifs_unix_caps()
[all …]
Dcifsproto.h304 __u64 cap);
Dcifssmb.c5314 CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap) in CIFSSMBSetFSUnixInfo() argument
5363 pSMB->ClientUnixCap = cpu_to_le64(cap); in CIFSSMBSetFSUnixInfo()
/fs/afs/
Dcmservice.c555 } cap; in SRXAFSCB_TellMeAboutYourself() member
591 reply.cap.capcount = htonl(1); in SRXAFSCB_TellMeAboutYourself()
592 reply.cap.caps[0] = htonl(AFS_CAP_ERROR_TRANSLATION); in SRXAFSCB_TellMeAboutYourself()
/fs/proc/
Darray.c318 a->cap[CAP_LAST_U32 - __capi]); in render_cap_t()
/fs/f2fs/
Df2fs.h1716 struct inode *inode, bool cap) in __allow_reserved_blocks() argument
1729 if (cap && capable(CAP_SYS_RESOURCE)) in __allow_reserved_blocks()