Lines Matching refs:ci

49 	struct ceph_inode_info *ci;  in ceph_handle_quota()  local
69 ci = ceph_inode(inode); in ceph_handle_quota()
71 spin_lock(&ci->i_ceph_lock); in ceph_handle_quota()
72 ci->i_rbytes = le64_to_cpu(h->rbytes); in ceph_handle_quota()
73 ci->i_rfiles = le64_to_cpu(h->rfiles); in ceph_handle_quota()
74 ci->i_rsubdirs = le64_to_cpu(h->rsubdirs); in ceph_handle_quota()
75 __ceph_update_quota(ci, le64_to_cpu(h->max_bytes), in ceph_handle_quota()
77 spin_unlock(&ci->i_ceph_lock); in ceph_handle_quota()
219 struct ceph_inode_info *ci = NULL; in get_quota_realm() local
265 ci = ceph_inode(in); in get_quota_realm()
266 has_quota = __ceph_has_quota(ci, which_quota); in get_quota_realm()
338 struct ceph_inode_info *ci; in check_quota_exceeded() local
381 ci = ceph_inode(in); in check_quota_exceeded()
382 spin_lock(&ci->i_ceph_lock); in check_quota_exceeded()
384 max = ci->i_max_files; in check_quota_exceeded()
385 rvalue = ci->i_rfiles + ci->i_rsubdirs; in check_quota_exceeded()
387 max = ci->i_max_bytes; in check_quota_exceeded()
388 rvalue = ci->i_rbytes; in check_quota_exceeded()
390 spin_unlock(&ci->i_ceph_lock); in check_quota_exceeded()
507 struct ceph_inode_info *ci; in ceph_quota_update_statfs() local
527 ci = ceph_inode(in); in ceph_quota_update_statfs()
528 spin_lock(&ci->i_ceph_lock); in ceph_quota_update_statfs()
529 if (ci->i_max_bytes) { in ceph_quota_update_statfs()
530 total = ci->i_max_bytes >> CEPH_BLOCK_SHIFT; in ceph_quota_update_statfs()
531 used = ci->i_rbytes >> CEPH_BLOCK_SHIFT; in ceph_quota_update_statfs()
534 total = ci->i_max_bytes >> CEPH_4K_BLOCK_SHIFT; in ceph_quota_update_statfs()
535 used = ci->i_rbytes >> CEPH_4K_BLOCK_SHIFT; in ceph_quota_update_statfs()
547 free = ci->i_max_bytes > ci->i_rbytes ? 1 : 0; in ceph_quota_update_statfs()
551 spin_unlock(&ci->i_ceph_lock); in ceph_quota_update_statfs()