btrfs: export compression and decompression callbacks
authorDavid Sterba <dsterba@suse.com>
Tue, 1 Oct 2019 20:38:34 +0000 (22:38 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:56 +0000 (12:46 +0100)
commitc4bf665a3197554a696121d20f3bf11d084a6961
treef2f22990a01d918ee4b4a2ecf9f47c52a80389f3
parenta60adce85f4bb5c1ef8ffcebadd702cafa2f3696
btrfs: export compression and decompression callbacks

Export compress_pages, decompress_bio and decompress callbacks for all
compression algos. The indirect calls will be replaced by a switch.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/lzo.c
fs/btrfs/zlib.c
fs/btrfs/zstd.c