Lines Matching refs:mdsc

28 	struct ceph_mds_client *mdsc = ceph_inode_to_client(inode)->mdsc;  in ceph_adjust_quota_realms_count()  local
30 atomic64_inc(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count()
32 atomic64_dec(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count()
37 struct ceph_mds_client *mdsc = ceph_inode_to_client(inode)->mdsc; in ceph_has_realms_with_quotas() local
38 return atomic64_read(&mdsc->quotarealms_count) > 0; in ceph_has_realms_with_quotas()
41 void ceph_handle_quota(struct ceph_mds_client *mdsc, in ceph_handle_quota() argument
45 struct super_block *sb = mdsc->fsc->sb; in ceph_handle_quota()
93 static struct ceph_snap_realm *get_quota_realm(struct ceph_mds_client *mdsc, in get_quota_realm() argument
106 ceph_get_snap_realm(mdsc, realm); in get_quota_realm()
125 ceph_get_snap_realm(mdsc, next); in get_quota_realm()
126 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
130 ceph_put_snap_realm(mdsc, realm); in get_quota_realm()
137 struct ceph_mds_client *mdsc = ceph_inode_to_client(old)->mdsc; in ceph_quota_is_same_realm() local
141 down_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()
142 old_realm = get_quota_realm(mdsc, old); in ceph_quota_is_same_realm()
143 new_realm = get_quota_realm(mdsc, new); in ceph_quota_is_same_realm()
145 up_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()
148 ceph_put_snap_realm(mdsc, old_realm); in ceph_quota_is_same_realm()
150 ceph_put_snap_realm(mdsc, new_realm); in ceph_quota_is_same_realm()
171 struct ceph_mds_client *mdsc = ceph_inode_to_client(inode)->mdsc; in check_quota_exceeded() local
181 down_read(&mdsc->snap_rwsem); in check_quota_exceeded()
184 ceph_get_snap_realm(mdsc, realm); in check_quota_exceeded()
236 ceph_get_snap_realm(mdsc, next); in check_quota_exceeded()
237 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
241 ceph_put_snap_realm(mdsc, realm); in check_quota_exceeded()
242 up_read(&mdsc->snap_rwsem); in check_quota_exceeded()
322 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_quota_update_statfs() local
329 down_read(&mdsc->snap_rwsem); in ceph_quota_update_statfs()
330 realm = get_quota_realm(mdsc, d_inode(fsc->sb->s_root)); in ceph_quota_update_statfs()
331 up_read(&mdsc->snap_rwsem); in ceph_quota_update_statfs()
358 ceph_put_snap_realm(mdsc, realm); in ceph_quota_update_statfs()