]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove unnecessary parameter type from compression_decompress_bio
authorSu Yue <l@damenly.su>
Mon, 27 Dec 2021 10:18:39 +0000 (18:18 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:27 +0000 (14:18 +0100)
commitdbf97406b1b11a177e9928e6f7481d17174ffc10
treeeeae0d6ea908aab6953c80c76bc4bfb1c3db6975
parent0608c31a536f939d1b64fbcf70b8d17ed8164a8e
btrfs: remove unnecessary parameter type from compression_decompress_bio

btrfs_decompress_bio, the only caller of compression_decompress_bio gets
type from @cb and passes it to compression_decompress_bio.
However, compression_decompress_bio can get compression type directly
from @cb.

So remove the parameter and access it through @cb.  No functional
change.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Su Yue <l@damenly.su>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c