summaryrefslogtreecommitdiff
path: root/fs/btrfs/zlib.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 02:50:28 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:58 +0100
commit5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed (patch)
tree0e3638d8a24e22ddc206233f22b66e86c00e4aca /fs/btrfs/zlib.c
parentbd3a5287cc20e37f1e365be1f742b6c574e3f83c (diff)
downloadlwn-5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed.tar.gz
lwn-5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed.zip
btrfs: compression: pass type to btrfs_get_workspace
We can infer the workspace_manager from type and the type will be used in the following patch to call a common helper for alloc_workspace. 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 610765640c8e..5679a2e41a52 100644
--- a/fs/btrfs/zlib.c
+++ b/fs/btrfs/zlib.c
@@ -31,7 +31,7 @@ static struct workspace_manager wsm;
struct list_head *zlib_get_workspace(unsigned int level)
{
- struct list_head *ws = btrfs_get_workspace(&wsm, level);
+ struct list_head *ws = btrfs_get_workspace(BTRFS_COMPRESS_ZLIB, level);
struct workspace *workspace = list_entry(ws, struct workspace, list);
workspace->level = level;