btrfs: compression: let workspace manager init take only the type
authorDavid Sterba <dsterba@suse.com>
Thu, 3 Oct 2019 23:40:58 +0000 (01:40 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:57 +0000 (12:46 +0100)
commit975db48330c492a84d8b29b10ae55a30a03dfe0f
tree8244f6535e83feb6068a7f895e8e396bfd8f4ac9
parentbe951045312d963ffeacd6a566a0de87e4784af1
btrfs: compression: let workspace manager init take only the type

With the access to the workspace structures, we can look it up together
with the compression ops inside the workspace manager init 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