From: Zhi Zhang Date: Tue, 8 Nov 2016 13:35:59 +0000 (+0100) Subject: ceph: fix printing wrong return variable in ceph_direct_read_write() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a380a031cbe4323a3f638a8468c862510ace1919;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Ilya Dryomov --- 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, pos >> PAGE_SHIFT, (pos + count) >> PAGE_SHIFT); if (ret2 < 0) - dout("invalidate_inode_pages2_range returned %d\n", ret); + dout("invalidate_inode_pages2_range returned %d\n", ret2); flags = CEPH_OSD_FLAG_ORDERSNAP | CEPH_OSD_FLAG_ONDISK |