aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2019-10-04 00:50:28 +0000
committerDavid Sterba <[email protected]>2019-11-18 11:46:59 +0000
commita3bbd2a9ee3c08b60b3127843866bdc76757c24f (patch)
tree2d04c48c2f8906dda7ff552d873f81b51b250233 /fs/btrfs/compression.h
parentbtrfs: compression: inline alloc_workspace (diff)
downloadkernel-a3bbd2a9ee3c08b60b3127843866bdc76757c24f.tar.gz
kernel-a3bbd2a9ee3c08b60b3127843866bdc76757c24f.zip
btrfs: compression: pass type to btrfs_put_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 free_workspace. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 8336c2ef6b5a..664b029cd5e4 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -121,7 +121,7 @@ struct workspace_manager {
};
struct list_head *btrfs_get_workspace(int type, unsigned int level);
-void btrfs_put_workspace(struct workspace_manager *wsm, struct list_head *ws);
+void btrfs_put_workspace(int type, struct list_head *ws);
struct btrfs_compress_op {
void (*free_workspace)(struct list_head *workspace);