Lines Matching refs:had
583 unsigned had = __ceph_caps_issued(ci, NULL); in __check_cap_issue() local
593 (had & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) == 0) { in __check_cap_issue()
603 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) { in __check_cap_issue()
613 if (S_ISDIR(ci->netfs.inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) && in __check_cap_issue()
3246 static void __ceph_put_cap_refs(struct ceph_inode_info *ci, int had, in __ceph_put_cap_refs() argument
3255 if (had & CEPH_CAP_PIN) in __ceph_put_cap_refs()
3257 if (had & CEPH_CAP_FILE_RD) in __ceph_put_cap_refs()
3260 if (had & CEPH_CAP_FILE_CACHE) in __ceph_put_cap_refs()
3263 if (had & CEPH_CAP_FILE_EXCL) in __ceph_put_cap_refs()
3266 if (had & CEPH_CAP_FILE_BUFFER) { in __ceph_put_cap_refs()
3276 if (had & CEPH_CAP_FILE_WR) { in __ceph_put_cap_refs()
3315 ceph_cap_string(had), last ? " last" : "", put ? " put" : ""); in __ceph_put_cap_refs()
3339 void ceph_put_cap_refs(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs() argument
3341 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_SYNC); in ceph_put_cap_refs()
3344 void ceph_put_cap_refs_async(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_async() argument
3346 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_ASYNC); in ceph_put_cap_refs_async()