aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <[email protected]>2022-04-26 13:47:34 +0000
committerDavid Sterba <[email protected]>2022-05-16 15:17:31 +0000
commit1d8fa2e29bc851ca66f680040fc74294df961bd4 (patch)
treeeb0fc22f642105f84425b422aac58943f561b057 /fs/btrfs/inode.c
parentbtrfs: scrub: move scrub_remap_extent() call into scrub_extent() (diff)
downloadkernel-1d8fa2e29bc851ca66f680040fc74294df961bd4.tar.gz
kernel-1d8fa2e29bc851ca66f680040fc74294df961bd4.zip
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 <[email protected]> Signed-off-by: Goldwyn Rodrigues <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
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 {
/*