Lines Matching refs:ci

49 	struct ceph_inode_info *ci;  in ceph_handle_quota()  local
71 ci = ceph_inode(inode); in ceph_handle_quota()
73 spin_lock(&ci->i_ceph_lock); in ceph_handle_quota()
74 ci->i_rbytes = le64_to_cpu(h->rbytes); in ceph_handle_quota()
75 ci->i_rfiles = le64_to_cpu(h->rfiles); in ceph_handle_quota()
76 ci->i_rsubdirs = le64_to_cpu(h->rsubdirs); in ceph_handle_quota()
77 __ceph_update_quota(ci, le64_to_cpu(h->max_bytes), in ceph_handle_quota()
79 spin_unlock(&ci->i_ceph_lock); in ceph_handle_quota()
96 struct ceph_inode_info *ci = NULL; in get_quota_realm() local
117 ci = ceph_inode(in); in get_quota_realm()
118 has_quota = __ceph_has_any_quota(ci); in get_quota_realm()
172 struct ceph_inode_info *ci; in check_quota_exceeded() local
195 ci = ceph_inode(in); in check_quota_exceeded()
196 spin_lock(&ci->i_ceph_lock); in check_quota_exceeded()
198 max = ci->i_max_files; in check_quota_exceeded()
199 rvalue = ci->i_rfiles + ci->i_rsubdirs; in check_quota_exceeded()
201 max = ci->i_max_bytes; in check_quota_exceeded()
202 rvalue = ci->i_rbytes; in check_quota_exceeded()
204 spin_unlock(&ci->i_ceph_lock); in check_quota_exceeded()
322 struct ceph_inode_info *ci; in ceph_quota_update_statfs() local
338 ci = ceph_inode(in); in ceph_quota_update_statfs()
339 spin_lock(&ci->i_ceph_lock); in ceph_quota_update_statfs()
340 if (ci->i_max_bytes) { in ceph_quota_update_statfs()
341 total = ci->i_max_bytes >> CEPH_BLOCK_SHIFT; in ceph_quota_update_statfs()
342 used = ci->i_rbytes >> CEPH_BLOCK_SHIFT; in ceph_quota_update_statfs()
348 spin_unlock(&ci->i_ceph_lock); in ceph_quota_update_statfs()