Lines Matching refs:ci
258 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_readdir() local
293 spin_lock(&ci->i_ceph_lock); in ceph_readdir()
297 __ceph_dir_is_complete_ordered(ci) && in ceph_readdir()
298 __ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1)) { in ceph_readdir()
299 u32 shared_gen = ci->i_shared_gen; in ceph_readdir()
300 spin_unlock(&ci->i_ceph_lock); in ceph_readdir()
307 spin_unlock(&ci->i_ceph_lock); in ceph_readdir()
465 if (atomic64_read(&ci->i_release_count) == fi->dir_release_count) { in ceph_readdir()
466 spin_lock(&ci->i_ceph_lock); in ceph_readdir()
467 if (fi->dir_ordered_count == atomic64_read(&ci->i_ordered_count)) { in ceph_readdir()
477 __ceph_dir_set_complete(ci, fi->dir_release_count, in ceph_readdir()
479 spin_unlock(&ci->i_ceph_lock); in ceph_readdir()
641 struct ceph_inode_info *ci = ceph_inode(dir); in ceph_lookup() local
644 spin_lock(&ci->i_ceph_lock); in ceph_lookup()
645 dout(" dir %p flags are %d\n", dir, ci->i_ceph_flags); in ceph_lookup()
651 __ceph_dir_is_complete(ci) && in ceph_lookup()
652 (__ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1))) { in ceph_lookup()
653 spin_unlock(&ci->i_ceph_lock); in ceph_lookup()
656 di->lease_shared_gen = ci->i_shared_gen; in ceph_lookup()
659 spin_unlock(&ci->i_ceph_lock); in ceph_lookup()
900 struct ceph_inode_info *ci = ceph_inode(inode); in drop_caps_for_unlink() local
903 spin_lock(&ci->i_ceph_lock); in drop_caps_for_unlink()
905 drop |= ~(__ceph_caps_wanted(ci) | CEPH_CAP_PIN); in drop_caps_for_unlink()
906 ci->i_ceph_flags |= CEPH_I_NODELAY; in drop_caps_for_unlink()
908 spin_unlock(&ci->i_ceph_lock); in drop_caps_for_unlink()
1078 struct ceph_inode_info *ci = ceph_inode(dir); in dir_lease_is_valid() local
1082 spin_lock(&ci->i_ceph_lock); in dir_lease_is_valid()
1083 if (ci->i_shared_gen == di->lease_shared_gen) in dir_lease_is_valid()
1084 valid = __ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1); in dir_lease_is_valid()
1085 spin_unlock(&ci->i_ceph_lock); in dir_lease_is_valid()
1087 dir, (unsigned)ci->i_shared_gen, dentry, in dir_lease_is_valid()
1193 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_read_dir() local
1214 ci->i_files + ci->i_subdirs, in ceph_read_dir()
1215 ci->i_files, in ceph_read_dir()
1216 ci->i_subdirs, in ceph_read_dir()
1217 ci->i_rfiles + ci->i_rsubdirs, in ceph_read_dir()
1218 ci->i_rfiles, in ceph_read_dir()
1219 ci->i_rsubdirs, in ceph_read_dir()
1220 ci->i_rbytes, in ceph_read_dir()
1221 (long)ci->i_rctime.tv_sec, in ceph_read_dir()
1222 (long)ci->i_rctime.tv_nsec); in ceph_read_dir()