Lines Matching refs:had
563 unsigned had = __ceph_caps_issued(ci, NULL); in __check_cap_issue() local
573 (had & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) == 0) { in __check_cap_issue()
583 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) { in __check_cap_issue()
593 if (S_ISDIR(ci->vfs_inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) && in __check_cap_issue()
3031 static void __ceph_put_cap_refs(struct ceph_inode_info *ci, int had, in __ceph_put_cap_refs() argument
3038 if (had & CEPH_CAP_PIN) in __ceph_put_cap_refs()
3040 if (had & CEPH_CAP_FILE_RD) in __ceph_put_cap_refs()
3043 if (had & CEPH_CAP_FILE_CACHE) in __ceph_put_cap_refs()
3046 if (had & CEPH_CAP_FILE_EXCL) in __ceph_put_cap_refs()
3049 if (had & CEPH_CAP_FILE_BUFFER) { in __ceph_put_cap_refs()
3057 if (had & CEPH_CAP_FILE_WR) in __ceph_put_cap_refs()
3085 dout("put_cap_refs %p had %s%s%s\n", inode, ceph_cap_string(had), in __ceph_put_cap_refs()
3098 void ceph_put_cap_refs(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs() argument
3100 __ceph_put_cap_refs(ci, had, false); in ceph_put_cap_refs()
3103 void ceph_put_cap_refs_no_check_caps(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_no_check_caps() argument
3105 __ceph_put_cap_refs(ci, had, true); in ceph_put_cap_refs_no_check_caps()