btrfs: compression: inline init_workspace_manager
authorDavid Sterba <dsterba@suse.com>
Tue, 1 Oct 2019 23:08:03 +0000 (01:08 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:57 +0000 (12:46 +0100)
commitd551703347263b7f79168e51c2f999cb883b8d65
tree5b387a391a2e9bff36521251faa34850ad23f5be
parent975db48330c492a84d8b29b10ae55a30a03dfe0f
btrfs: compression: inline init_workspace_manager

Replace loop calling to all algos with a list of direct calls to the
init manager callback. When that becomes trivial it is replaced by
direct call to the helper.

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