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 | 2dba714390f1ff7a8a37cc8c3b374d71d3e84af7 (patch) | |
tree | d8c07872abeac80b5bf0b68c7380f976a25b9747 /fs/btrfs/zlib.c | |
parent | btrfs: compression: inline init_workspace_manager (diff) | |
download | linux-2dba714390f1ff7a8a37cc8c3b374d71d3e84af7.tar.xz linux-2dba714390f1ff7a8a37cc8c3b374d71d3e84af7.zip |
btrfs: compression: let workspace manager cleanup 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 cleanup 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c index 39f1d0f1b286..7319e9f3d484 100644 --- a/fs/btrfs/zlib.c +++ b/fs/btrfs/zlib.c @@ -31,7 +31,7 @@ static struct workspace_manager wsm; static void zlib_cleanup_workspace_manager(void) { - btrfs_cleanup_workspace_manager(&wsm); + btrfs_cleanup_workspace_manager(BTRFS_COMPRESS_ZLIB); } static struct list_head *zlib_get_workspace(unsigned int level) |