Lines Matching refs:write
730 bool write; member
765 if (ret >= 0 && aio_req->write) { in ceph_aio_complete()
784 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
808 BUG_ON(!aio_req->write); in ceph_aio_complete_req()
819 } else if (!aio_req->write) { in ceph_aio_complete_req()
944 bool write = iov_iter_rw(iter) == WRITE; in ceph_direct_read_write() local
945 bool should_dirty = !write && iter_is_iovec(iter); in ceph_direct_read_write()
947 if (write && ceph_snap(file_inode(file)) != CEPH_NOSNAP) in ceph_direct_read_write()
951 (write ? "write" : "read"), file, pos, (unsigned)count, in ceph_direct_read_write()
954 if (write) { in ceph_direct_read_write()
970 if (write) in ceph_direct_read_write()
979 write ? CEPH_OSD_OP_WRITE : in ceph_direct_read_write()
1008 aio_req->write = write; in ceph_direct_read_write()
1011 if (write) { in ceph_direct_read_write()
1019 if (write) { in ceph_direct_read_write()
1051 if (!write) { in ceph_direct_read_write()
1074 if (!write && pos >= size) in ceph_direct_read_write()
1077 if (write && pos > size) { in ceph_direct_read_write()
1093 ceph_get_cap_refs(ci, write ? CEPH_CAP_FILE_WR : in ceph_direct_read_write()