diff options
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 5ca504c66e85..532d5279df2f 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c | |||
@@ -1503,7 +1503,7 @@ xfs_vm_direct_IO( | |||
1503 | struct inode *inode = iocb->ki_filp->f_mapping->host; | 1503 | struct inode *inode = iocb->ki_filp->f_mapping->host; |
1504 | struct block_device *bdev = xfs_find_bdev_for_inode(inode); | 1504 | struct block_device *bdev = xfs_find_bdev_for_inode(inode); |
1505 | 1505 | ||
1506 | if (rw & WRITE) { | 1506 | if (iov_iter_rw(iter) == WRITE) { |
1507 | return __blockdev_direct_IO(iocb, inode, bdev, iter, offset, | 1507 | return __blockdev_direct_IO(iocb, inode, bdev, iter, offset, |
1508 | xfs_get_blocks_direct, | 1508 | xfs_get_blocks_direct, |
1509 | xfs_end_io_direct_write, NULL, | 1509 | xfs_end_io_direct_write, NULL, |