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->netfs.inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) && in __check_cap_issue()
3076 static void __ceph_put_cap_refs(struct ceph_inode_info *ci, int had, in __ceph_put_cap_refs() argument
3084 if (had & CEPH_CAP_PIN) in __ceph_put_cap_refs()
3086 if (had & CEPH_CAP_FILE_RD) in __ceph_put_cap_refs()
3089 if (had & CEPH_CAP_FILE_CACHE) in __ceph_put_cap_refs()
3092 if (had & CEPH_CAP_FILE_EXCL) in __ceph_put_cap_refs()
3095 if (had & CEPH_CAP_FILE_BUFFER) { in __ceph_put_cap_refs()
3105 if (had & CEPH_CAP_FILE_WR) { in __ceph_put_cap_refs()
3137 dout("put_cap_refs %p had %s%s%s\n", inode, ceph_cap_string(had), in __ceph_put_cap_refs()
3162 void ceph_put_cap_refs(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs() argument
3164 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_SYNC); in ceph_put_cap_refs()
3167 void ceph_put_cap_refs_async(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_async() argument
3169 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_ASYNC); in ceph_put_cap_refs_async()
3172 void ceph_put_cap_refs_no_check_caps(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_no_check_caps() argument
3174 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_NO_CHECK); in ceph_put_cap_refs_no_check_caps()