aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r--fs/ocfs2/aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 68cb199fb2b6..0ee9474cca46 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -842,7 +842,7 @@ static ssize_t ocfs2_direct_IO(int rw,
842 if (i_size_read(inode) <= offset && !full_coherency) 842 if (i_size_read(inode) <= offset && !full_coherency)
843 return 0; 843 return 0;
844 844
845 if (rw == READ) 845 if (iov_iter_rw(iter) == READ)
846 return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev, 846 return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev,
847 iter, offset, 847 iter, offset,
848 ocfs2_direct_IO_get_blocks, 848 ocfs2_direct_IO_get_blocks,