Lines Matching defs:had
565 unsigned had = __ceph_caps_issued(ci, NULL);
575 (had & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) == 0) {
585 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) {
595 if (S_ISDIR(ci->netfs.inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) &&
3150 static void __ceph_put_cap_refs(struct ceph_inode_info *ci, int had,
3158 if (had & CEPH_CAP_PIN)
3160 if (had & CEPH_CAP_FILE_RD)
3163 if (had & CEPH_CAP_FILE_CACHE)
3166 if (had & CEPH_CAP_FILE_EXCL)
3169 if (had & CEPH_CAP_FILE_BUFFER) {
3179 if (had & CEPH_CAP_FILE_WR) {
3217 dout("put_cap_refs %p had %s%s%s\n", inode, ceph_cap_string(had),
3242 void ceph_put_cap_refs(struct ceph_inode_info *ci, int had)
3244 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_SYNC);
3247 void ceph_put_cap_refs_async(struct ceph_inode_info *ci, int had)
3249 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_ASYNC);
3252 void ceph_put_cap_refs_no_check_caps(struct ceph_inode_info *ci, int had)
3254 __ceph_put_cap_refs(ci, had, PUT_CAP_REFS_NO_CHECK);