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