Lines Matching refs:realm
130 struct ceph_snap_realm *realm) in lookup_quotarealm_inode() argument
135 qri = find_quotarealm_inode(mdsc, realm->ino); in lookup_quotarealm_inode()
160 in = ceph_lookup_inode(sb, realm->ino); in lookup_quotarealm_inode()
165 realm->ino, PTR_ERR(in)); in lookup_quotarealm_inode()
216 struct ceph_snap_realm *realm, *next; in get_quota_realm() local
226 realm = ceph_inode(inode)->i_snap_realm; in get_quota_realm()
227 if (realm) in get_quota_realm()
228 ceph_get_snap_realm(mdsc, realm); in get_quota_realm()
232 while (realm) { in get_quota_realm()
235 spin_lock(&realm->inodes_with_caps_lock); in get_quota_realm()
236 has_inode = realm->inode; in get_quota_realm()
237 in = has_inode ? igrab(realm->inode) : NULL; in get_quota_realm()
238 spin_unlock(&realm->inodes_with_caps_lock); in get_quota_realm()
243 in = lookup_quotarealm_inode(mdsc, inode->i_sb, realm); in get_quota_realm()
247 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
257 next = realm->parent; in get_quota_realm()
260 *realmp = realm; in get_quota_realm()
265 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
266 realm = next; in get_quota_realm()
268 if (realm) in get_quota_realm()
269 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
326 struct ceph_snap_realm *realm, *next; in check_quota_exceeded() local
336 realm = ceph_inode(inode)->i_snap_realm; in check_quota_exceeded()
337 if (realm) in check_quota_exceeded()
338 ceph_get_snap_realm(mdsc, realm); in check_quota_exceeded()
342 while (realm) { in check_quota_exceeded()
345 spin_lock(&realm->inodes_with_caps_lock); in check_quota_exceeded()
346 has_inode = realm->inode; in check_quota_exceeded()
347 in = has_inode ? igrab(realm->inode) : NULL; in check_quota_exceeded()
348 spin_unlock(&realm->inodes_with_caps_lock); in check_quota_exceeded()
353 in = lookup_quotarealm_inode(mdsc, inode->i_sb, realm); in check_quota_exceeded()
357 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
396 next = realm->parent; in check_quota_exceeded()
400 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
401 realm = next; in check_quota_exceeded()
403 if (realm) in check_quota_exceeded()
404 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
487 struct ceph_snap_realm *realm; in ceph_quota_update_statfs() local
494 &realm, true); in ceph_quota_update_statfs()
496 if (!realm) in ceph_quota_update_statfs()
499 spin_lock(&realm->inodes_with_caps_lock); in ceph_quota_update_statfs()
500 in = realm->inode ? igrab(realm->inode) : NULL; in ceph_quota_update_statfs()
501 spin_unlock(&realm->inodes_with_caps_lock); in ceph_quota_update_statfs()
536 ceph_put_snap_realm(mdsc, realm); in ceph_quota_update_statfs()