Lines Matching defs:had
563 unsigned had = __ceph_caps_issued(ci, NULL);
573 (had & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) == 0) {
583 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) {
593 if (S_ISDIR(ci->vfs_inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) &&
3124 static void __ceph_put_cap_refs(struct ceph_inode_info *ci, int had,
3131 if (had & CEPH_CAP_PIN)
3133 if (had & CEPH_CAP_FILE_RD)
3136 if (had & CEPH_CAP_FILE_CACHE)
3139 if (had & CEPH_CAP_FILE_EXCL)
3142 if (had & CEPH_CAP_FILE_BUFFER) {
3150 if (had & CEPH_CAP_FILE_WR)
3178 dout("put_cap_refs %p had %s%s%s\n", inode, ceph_cap_string(had),
3193 void ceph_put_cap_refs(struct ceph_inode_info *ci, int had)
3195 __ceph_put_cap_refs(ci, had, false);
3198 void ceph_put_cap_refs_no_check_caps(struct ceph_inode_info *ci, int had)
3200 __ceph_put_cap_refs(ci, had, true);