aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
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/compression.h
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/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);