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()
3034 static void __ceph_put_cap_refs(struct ceph_inode_info *ci, int had, in __ceph_put_cap_refs() argument
3042 if (had & CEPH_CAP_PIN) in __ceph_put_cap_refs()
3044 if (had & CEPH_CAP_FILE_RD) in __ceph_put_cap_refs()
3047 if (had & CEPH_CAP_FILE_CACHE) in __ceph_put_cap_refs()
3050 if (had & CEPH_CAP_FILE_EXCL) in __ceph_put_cap_refs()
3053 if (had & CEPH_CAP_FILE_BUFFER) { in __ceph_put_cap_refs()
3063 if (had & CEPH_CAP_FILE_WR) { in __ceph_put_cap_refs()
3095 dout("put_cap_refs %p had %s%s%s\n", inode, ceph_cap_string(had), in __ceph_put_cap_refs()
3120 void ceph_put_cap_refs(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs() argument
3122 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_SYNC); in ceph_put_cap_refs()
3125 void ceph_put_cap_refs_async(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_async() argument
3127 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_ASYNC); in ceph_put_cap_refs_async()
3130 void ceph_put_cap_refs_no_check_caps(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_no_check_caps() argument
3132 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_NO_CHECK); in ceph_put_cap_refs_no_check_caps()