Lines Matching refs:had
565 unsigned had = __ceph_caps_issued(ci, NULL); in __check_cap_issue() local
575 (had & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) == 0) { in __check_cap_issue()
585 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) { in __check_cap_issue()
595 if (S_ISDIR(ci->netfs.inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) && in __check_cap_issue()
3149 static void __ceph_put_cap_refs(struct ceph_inode_info *ci, int had, in __ceph_put_cap_refs() argument
3157 if (had & CEPH_CAP_PIN) in __ceph_put_cap_refs()
3159 if (had & CEPH_CAP_FILE_RD) in __ceph_put_cap_refs()
3162 if (had & CEPH_CAP_FILE_CACHE) in __ceph_put_cap_refs()
3165 if (had & CEPH_CAP_FILE_EXCL) in __ceph_put_cap_refs()
3168 if (had & CEPH_CAP_FILE_BUFFER) { in __ceph_put_cap_refs()
3178 if (had & CEPH_CAP_FILE_WR) { in __ceph_put_cap_refs()
3216 dout("put_cap_refs %p had %s%s%s\n", inode, ceph_cap_string(had), in __ceph_put_cap_refs()
3241 void ceph_put_cap_refs(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs() argument
3243 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_SYNC); in ceph_put_cap_refs()
3246 void ceph_put_cap_refs_async(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_async() argument
3248 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_ASYNC); in ceph_put_cap_refs_async()
3251 void ceph_put_cap_refs_no_check_caps(struct ceph_inode_info *ci, int had) in ceph_put_cap_refs_no_check_caps() argument
3253 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_NO_CHECK); in ceph_put_cap_refs_no_check_caps()