]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: compression: attach workspace manager to the ops
authorDavid Sterba <dsterba@suse.com>
Tue, 1 Oct 2019 22:53:31 +0000 (00:53 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:57 +0000 (12:46 +0100)
commit62012d17d61879212c42910be577b804a5eda232
tree5e34516fd7e2fb75d51ebff930b9100dfe99f497
parent1693551e3ce3bf2f464850f4e6d1d21118f6a220
btrfs: compression: attach workspace manager to the ops

There's a lot of indirection when the generic code calls into
algo-specific callbacks to reach the private workspace manager structure
and back to the generic code.

To simplify that, export the workspace manager for heuristic, LZO and
ZLIB, while ZSTD is going to use it's own manager.

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/compression.h
fs/btrfs/lzo.c
fs/btrfs/zlib.c
fs/btrfs/zstd.c