• Home
  • Raw
  • Download

Lines Matching refs:realm

128 					     struct ceph_snap_realm *realm)  in lookup_quotarealm_inode()  argument
133 qri = find_quotarealm_inode(mdsc, realm->ino); in lookup_quotarealm_inode()
158 in = ceph_lookup_inode(sb, realm->ino); in lookup_quotarealm_inode()
163 realm->ino, PTR_ERR(in)); in lookup_quotarealm_inode()
213 struct ceph_snap_realm *realm, *next; in get_quota_realm() local
221 realm = ceph_inode(inode)->i_snap_realm; in get_quota_realm()
222 if (realm) in get_quota_realm()
223 ceph_get_snap_realm(mdsc, realm); in get_quota_realm()
227 while (realm) { in get_quota_realm()
230 spin_lock(&realm->inodes_with_caps_lock); in get_quota_realm()
231 has_inode = realm->inode; in get_quota_realm()
232 in = has_inode ? igrab(realm->inode) : NULL; in get_quota_realm()
233 spin_unlock(&realm->inodes_with_caps_lock); in get_quota_realm()
238 in = lookup_quotarealm_inode(mdsc, inode->i_sb, realm); in get_quota_realm()
242 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
253 next = realm->parent; in get_quota_realm()
255 return realm; in get_quota_realm()
258 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
259 realm = next; in get_quota_realm()
261 if (realm) in get_quota_realm()
262 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
318 struct ceph_snap_realm *realm, *next; in check_quota_exceeded() local
328 realm = ceph_inode(inode)->i_snap_realm; in check_quota_exceeded()
329 if (realm) in check_quota_exceeded()
330 ceph_get_snap_realm(mdsc, realm); in check_quota_exceeded()
334 while (realm) { in check_quota_exceeded()
337 spin_lock(&realm->inodes_with_caps_lock); in check_quota_exceeded()
338 has_inode = realm->inode; in check_quota_exceeded()
339 in = has_inode ? igrab(realm->inode) : NULL; in check_quota_exceeded()
340 spin_unlock(&realm->inodes_with_caps_lock); in check_quota_exceeded()
345 in = lookup_quotarealm_inode(mdsc, inode->i_sb, realm); in check_quota_exceeded()
349 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
389 next = realm->parent; in check_quota_exceeded()
393 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
394 realm = next; in check_quota_exceeded()
396 if (realm) in check_quota_exceeded()
397 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
480 struct ceph_snap_realm *realm; in ceph_quota_update_statfs() local
486 realm = get_quota_realm(mdsc, d_inode(fsc->sb->s_root), true); in ceph_quota_update_statfs()
488 if (!realm) in ceph_quota_update_statfs()
491 spin_lock(&realm->inodes_with_caps_lock); in ceph_quota_update_statfs()
492 in = realm->inode ? igrab(realm->inode) : NULL; in ceph_quota_update_statfs()
493 spin_unlock(&realm->inodes_with_caps_lock); in ceph_quota_update_statfs()
514 ceph_put_snap_realm(mdsc, realm); in ceph_quota_update_statfs()