btrfs: factor out a btrfs_free_compressed_pages helper
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Feb 2023 07:48:39 +0000 (08:48 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:14 +0000 (18:01 +0200)
commit32586c5bca72bfd2875f0c66032e134ce1c68680
treefe93c8176f54d4537fffa0c04cea7012b5c92112
parent10e924bc320a956a62db768ee6e5c49af8f0b670
btrfs: factor out a btrfs_free_compressed_pages helper

Share the code to free the compressed pages and the array to hold them
into a common helper.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c