diff options
author | David Sterba <dsterba@suse.com> | 2017-02-10 12:46:09 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 06:03:51 -0500 |
commit | e27f62652b89d0701d87112339f286ebf24ffc8c (patch) | |
tree | cf83a18675dd652396f06a070d5b8dada6b51c31 | |
parent | cda79c545ead7e00b1adaf82a13fcea892bf1f43 (diff) |
btrfs: remove unused parameter from check_async_write
Added but never used.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 18004169552c..89cd597883fd 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1005,7 +1005,7 @@ static int __btree_submit_bio_done(struct inode *inode, struct bio *bio, | |||
1005 | return ret; | 1005 | return ret; |
1006 | } | 1006 | } |
1007 | 1007 | ||
1008 | static int check_async_write(struct inode *inode, unsigned long bio_flags) | 1008 | static int check_async_write(unsigned long bio_flags) |
1009 | { | 1009 | { |
1010 | if (bio_flags & EXTENT_BIO_TREE_LOG) | 1010 | if (bio_flags & EXTENT_BIO_TREE_LOG) |
1011 | return 0; | 1011 | return 0; |
@@ -1021,7 +1021,7 @@ static int btree_submit_bio_hook(struct inode *inode, struct bio *bio, | |||
1021 | u64 bio_offset) | 1021 | u64 bio_offset) |
1022 | { | 1022 | { |
1023 | struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); | 1023 | struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); |
1024 | int async = check_async_write(inode, bio_flags); | 1024 | int async = check_async_write(bio_flags); |
1025 | int ret; | 1025 | int ret; |
1026 | 1026 | ||
1027 | if (bio_op(bio) != REQ_OP_WRITE) { | 1027 | if (bio_op(bio) != REQ_OP_WRITE) { |