diff options
author | Zhi Zhang <zhang.david2011@gmail.com> | 2016-11-08 08:35:59 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-12-12 17:54:27 -0500 |
commit | a380a031cbe4323a3f638a8468c862510ace1919 (patch) | |
tree | 39e37c6488e7c1f4e7c88cee8946a5ac810f56f0 | |
parent | f6c0d1a3edb5862c21ddb57bd4dfa175b01136ca (diff) |
ceph: fix printing wrong return variable in ceph_direct_read_write()
Fix printing wrong return variable for invalidate_inode_pages2_range in
ceph_direct_read_write().
Signed-off-by: Zhi Zhang <zhang.david2011@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index f995e3528a33..10cd6acad44c 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -906,7 +906,7 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter, | |||
906 | pos >> PAGE_SHIFT, | 906 | pos >> PAGE_SHIFT, |
907 | (pos + count) >> PAGE_SHIFT); | 907 | (pos + count) >> PAGE_SHIFT); |
908 | if (ret2 < 0) | 908 | if (ret2 < 0) |
909 | dout("invalidate_inode_pages2_range returned %d\n", ret); | 909 | dout("invalidate_inode_pages2_range returned %d\n", ret2); |
910 | 910 | ||
911 | flags = CEPH_OSD_FLAG_ORDERSNAP | | 911 | flags = CEPH_OSD_FLAG_ORDERSNAP | |
912 | CEPH_OSD_FLAG_ONDISK | | 912 | CEPH_OSD_FLAG_ONDISK | |