Lines Matching refs:ci
22 static void ceph_block_o_direct(struct ceph_inode_info *ci, struct inode *inode)
26 if (READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT) {
27 spin_lock(&ci->i_ceph_lock);
28 ci->i_ceph_flags &= ~CEPH_I_ODIRECT;
29 spin_unlock(&ci->i_ceph_lock);
53 struct ceph_inode_info *ci = ceph_inode(inode);
57 if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT))
62 ceph_block_o_direct(ci, inode);
107 static void ceph_block_buffered(struct ceph_inode_info *ci, struct inode *inode)
111 if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT)) {
112 spin_lock(&ci->i_ceph_lock);
113 ci->i_ceph_flags |= CEPH_I_ODIRECT;
114 spin_unlock(&ci->i_ceph_lock);
139 struct ceph_inode_info *ci = ceph_inode(inode);
143 if (READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT)
148 ceph_block_buffered(ci, inode);