summaryrefslogtreecommitdiff
path: root/fs/btrfs/zlib.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 02:40:58 +0300
committerDavid Sterba <dsterba@suse.com>2019-11-18 14:46:57 +0300
commit2dba714390f1ff7a8a37cc8c3b374d71d3e84af7 (patch)
treed8c07872abeac80b5bf0b68c7380f976a25b9747 /fs/btrfs/zlib.c
parentd551703347263b7f79168e51c2f999cb883b8d65 (diff)
downloadlinux-2dba714390f1ff7a8a37cc8c3b374d71d3e84af7.tar.xz
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.c2
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)