diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-08-21 11:43:46 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-30 12:27:56 +0100 |
commit | 8c70c9f81eac82f497a37e901fb09c1cc2f0733f (patch) | |
tree | ca7a5b8db862e633cd91fabdc0c414b7c81da4ca /fs/btrfs/inode.c | |
parent | btrfs: Remove unused arguments from btrfs_changed_cb_t (diff) | |
download | linux-8c70c9f81eac82f497a37e901fb09c1cc2f0733f.tar.xz linux-8c70c9f81eac82f497a37e901fb09c1cc2f0733f.zip |
btrfs: Remove unused parameter from check_direct_IO
Introduced by 5a5f79b57069 ("Btrfs: allow unaligned DIO") and never
used. The buffered fallback from unaligned DIO works as expected.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Timofey Titovets <nefelim4ag@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0460c5431a72..ef3915666ebf 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8786,7 +8786,6 @@ free_ordered: } static ssize_t check_direct_IO(struct btrfs_fs_info *fs_info, - struct kiocb *iocb, const struct iov_iter *iter, loff_t offset) { int seg; @@ -8833,7 +8832,7 @@ static ssize_t btrfs_direct_IO(struct kiocb *iocb, struct iov_iter *iter) bool relock = false; ssize_t ret; - if (check_direct_IO(fs_info, iocb, iter, offset)) + if (check_direct_IO(fs_info, iter, offset)) return 0; inode_dio_begin(inode); |