diff options
author | David Sterba <dsterba@suse.com> | 2019-10-04 01:40:58 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 12:46:57 +0100 |
commit | 975db48330c492a84d8b29b10ae55a30a03dfe0f (patch) | |
tree | 8244f6535e83feb6068a7f895e8e396bfd8f4ac9 /fs/btrfs/lzo.c | |
parent | be951045312d963ffeacd6a566a0de87e4784af1 (diff) | |
download | linux-975db48330c492a84d8b29b10ae55a30a03dfe0f.tar.bz2 |
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/lzo.c')
-rw-r--r-- | fs/btrfs/lzo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index aff105cc80e7..5b8470041bf6 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs/lzo.c @@ -65,7 +65,7 @@ static struct workspace_manager wsm; static void lzo_init_workspace_manager(void) { - btrfs_init_workspace_manager(&wsm, &btrfs_lzo_compress); + btrfs_init_workspace_manager(BTRFS_COMPRESS_LZO); } static void lzo_cleanup_workspace_manager(void) |