diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-02-11 12:48:41 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-02-24 13:04:57 -0500 |
commit | 54ea0046b6fe36ec18e82d282a29a18da6cdea0f (patch) | |
tree | d75b70f1d6a235ebd79eaf0e5986eec77ec35403 /fs/ceph/file.c | |
parent | b18b9550e4059ceea0393c518eb323b95243f92f (diff) |
libceph, rbd, ceph: WRITE | ONDISK -> WRITE
CEPH_OSD_FLAG_ONDISK is set in account_request().
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r-- | fs/ceph/file.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 023cb7fd9b5f..26cc95421cca 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -759,9 +759,7 @@ static void ceph_aio_retry_work(struct work_struct *work) | |||
759 | goto out; | 759 | goto out; |
760 | } | 760 | } |
761 | 761 | ||
762 | req->r_flags = CEPH_OSD_FLAG_ORDERSNAP | | 762 | req->r_flags = CEPH_OSD_FLAG_ORDERSNAP | CEPH_OSD_FLAG_WRITE; |
763 | CEPH_OSD_FLAG_ONDISK | | ||
764 | CEPH_OSD_FLAG_WRITE; | ||
765 | ceph_oloc_copy(&req->r_base_oloc, &orig_req->r_base_oloc); | 763 | ceph_oloc_copy(&req->r_base_oloc, &orig_req->r_base_oloc); |
766 | ceph_oid_copy(&req->r_base_oid, &orig_req->r_base_oid); | 764 | ceph_oid_copy(&req->r_base_oid, &orig_req->r_base_oid); |
767 | 765 | ||
@@ -833,9 +831,7 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter, | |||
833 | if (ret2 < 0) | 831 | if (ret2 < 0) |
834 | dout("invalidate_inode_pages2_range returned %d\n", ret2); | 832 | dout("invalidate_inode_pages2_range returned %d\n", ret2); |
835 | 833 | ||
836 | flags = CEPH_OSD_FLAG_ORDERSNAP | | 834 | flags = CEPH_OSD_FLAG_ORDERSNAP | CEPH_OSD_FLAG_WRITE; |
837 | CEPH_OSD_FLAG_ONDISK | | ||
838 | CEPH_OSD_FLAG_WRITE; | ||
839 | } else { | 835 | } else { |
840 | flags = CEPH_OSD_FLAG_READ; | 836 | flags = CEPH_OSD_FLAG_READ; |
841 | } | 837 | } |
@@ -1034,9 +1030,7 @@ ceph_sync_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos, | |||
1034 | if (ret < 0) | 1030 | if (ret < 0) |
1035 | dout("invalidate_inode_pages2_range returned %d\n", ret); | 1031 | dout("invalidate_inode_pages2_range returned %d\n", ret); |
1036 | 1032 | ||
1037 | flags = CEPH_OSD_FLAG_ORDERSNAP | | 1033 | flags = CEPH_OSD_FLAG_ORDERSNAP | CEPH_OSD_FLAG_WRITE; |
1038 | CEPH_OSD_FLAG_ONDISK | | ||
1039 | CEPH_OSD_FLAG_WRITE; | ||
1040 | 1034 | ||
1041 | while ((len = iov_iter_count(from)) > 0) { | 1035 | while ((len = iov_iter_count(from)) > 0) { |
1042 | size_t left; | 1036 | size_t left; |
@@ -1531,8 +1525,7 @@ static int ceph_zero_partial_object(struct inode *inode, | |||
1531 | ceph_vino(inode), | 1525 | ceph_vino(inode), |
1532 | offset, length, | 1526 | offset, length, |
1533 | 0, 1, op, | 1527 | 0, 1, op, |
1534 | CEPH_OSD_FLAG_WRITE | | 1528 | CEPH_OSD_FLAG_WRITE, |
1535 | CEPH_OSD_FLAG_ONDISK, | ||
1536 | NULL, 0, 0, false); | 1529 | NULL, 0, 0, false); |
1537 | if (IS_ERR(req)) { | 1530 | if (IS_ERR(req)) { |
1538 | ret = PTR_ERR(req); | 1531 | ret = PTR_ERR(req); |