diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2022-04-26 08:47:34 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-05-16 17:17:31 +0200 |
commit | 1d8fa2e29bc851ca66f680040fc74294df961bd4 (patch) | |
tree | eb0fc22f642105f84425b422aac58943f561b057 /fs/btrfs/inode.c | |
parent | a13467ee7ae3742f23f0bef0cafa168312a94cb4 (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.c | 3 |
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 { /* |