summaryrefslogtreecommitdiff
path: root/fs/btrfs/zlib.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 01:40:58 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:57 +0100
commit975db48330c492a84d8b29b10ae55a30a03dfe0f (patch)
tree8244f6535e83feb6068a7f895e8e396bfd8f4ac9 /fs/btrfs/zlib.c
parentbe951045312d963ffeacd6a566a0de87e4784af1 (diff)
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>
Diffstat (limited to 'fs/btrfs/zlib.c')
-rw-r--r--fs/btrfs/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c
index a5e8f0207473..be964128dba3 100644
--- a/fs/btrfs/zlib.c
+++ b/fs/btrfs/zlib.c
@@ -31,7 +31,7 @@ static struct workspace_manager wsm;
static void zlib_init_workspace_manager(void)
{
- btrfs_init_workspace_manager(&wsm, &btrfs_zlib_compress);
+ btrfs_init_workspace_manager(BTRFS_COMPRESS_ZLIB);
}
static void zlib_cleanup_workspace_manager(void)