aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@osandov.com>2015-03-16 07:33:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-11 22:29:44 -0400
commit17f8c842d24ac054e4212c82b5bd6ae455a334f3 (patch)
treedb8e5831159db867f34280200f81d4eadbec74a4 /fs/ocfs2
parentbd8e0ff956456ad9071dbb6c2ed7d33bd22fc216 (diff)
Remove rw from {,__,do_}blockdev_direct_IO()
Most filesystems call through to these at some point, so we'll start here. Signed-off-by: Omar Sandoval <osandov@osandov.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/aops.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index e1bf18c5d25e..68cb199fb2b6 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -738,10 +738,9 @@ static ssize_t ocfs2_direct_IO_write(struct kiocb *iocb,
738 di_bh = NULL; 738 di_bh = NULL;
739 } 739 }
740 740
741 written = __blockdev_direct_IO(WRITE, iocb, inode, inode->i_sb->s_bdev, 741 written = __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev, iter,
742 iter, offset, 742 offset, ocfs2_direct_IO_get_blocks,
743 ocfs2_direct_IO_get_blocks, 743 ocfs2_dio_end_io, NULL, 0);
744 ocfs2_dio_end_io, NULL, 0);
745 if (unlikely(written < 0)) { 744 if (unlikely(written < 0)) {
746 loff_t i_size = i_size_read(inode); 745 loff_t i_size = i_size_read(inode);
747 746
@@ -844,11 +843,10 @@ static ssize_t ocfs2_direct_IO(int rw,
844 return 0; 843 return 0;
845 844
846 if (rw == READ) 845 if (rw == READ)
847 return __blockdev_direct_IO(rw, iocb, inode, 846 return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev,
848 inode->i_sb->s_bdev, 847 iter, offset,
849 iter, offset, 848 ocfs2_direct_IO_get_blocks,
850 ocfs2_direct_IO_get_blocks, 849 ocfs2_dio_end_io, NULL, 0);
851 ocfs2_dio_end_io, NULL, 0);
852 else 850 else
853 return ocfs2_direct_IO_write(iocb, iter, offset); 851 return ocfs2_direct_IO_write(iocb, iter, offset);
854} 852}