summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.de>2022-04-26 08:47:34 -0500
committerDavid Sterba <dsterba@suse.com>2022-05-16 17:17:31 +0200
commit1d8fa2e29bc851ca66f680040fc74294df961bd4 (patch)
treeeb0fc22f642105f84425b422aac58943f561b057 /fs/btrfs/inode.c
parenta13467ee7ae3742f23f0bef0cafa168312a94cb4 (diff)
btrfs: derive compression type from extent map during reads
Derive the compression type from extent map as opposed to the bio flags passed. This makes it more precise and not reliant on function parameters. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index a907b3ba7d62..e6be5ebe7611 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2606,8 +2606,7 @@ void btrfs_submit_data_bio(struct inode *inode, struct bio *bio,
* the bio if there were any errors, so just return
* here.
*/
- btrfs_submit_compressed_read(inode, bio, mirror_num,
- bio_flags);
+ btrfs_submit_compressed_read(inode, bio, mirror_num);
return;
} else {
/*