aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorGravatar Goldwyn Rodrigues <rgoldwyn@suse.de> 2022-04-26 08:47:34 -0500
committerGravatar David Sterba <dsterba@suse.com> 2022-05-16 17:17:31 +0200
commit1d8fa2e29bc851ca66f680040fc74294df961bd4 (patch)
treeeb0fc22f642105f84425b422aac58943f561b057 /fs/btrfs/compression.h
parentbtrfs: scrub: move scrub_remap_extent() call into scrub_extent() (diff)
downloadlinux-1d8fa2e29bc851ca66f680040fc74294df961bd4.tar.gz
linux-1d8fa2e29bc851ca66f680040fc74294df961bd4.tar.bz2
linux-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 <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/compression.h')
-rw-r--r--fs/btrfs/compression.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index ac3c79f8c349..2707404389a5 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -103,7 +103,7 @@ blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
struct cgroup_subsys_state *blkcg_css,
bool writeback);
void btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
- int mirror_num, unsigned long bio_flags);
+ int mirror_num);
unsigned int btrfs_compress_str2level(unsigned int type, const char *str);