summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
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:59 +0100
commita3bbd2a9ee3c08b60b3127843866bdc76757c24f (patch)
tree2d04c48c2f8906dda7ff552d873f81b51b250233 /fs/btrfs/compression.h
parentc778df140644142fb7e12b7e468b137721d85890 (diff)
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 <jthumshirn@suse.de> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
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);