aboutsummaryrefslogtreecommitdiffstats
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:58 +0100
commit5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed (patch)
tree0e3638d8a24e22ddc206233f22b66e86c00e4aca /fs/btrfs/compression.h
parentbtrfs: compression: inline put_workspace (diff)
downloadlinux-dev-5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed.tar.xz
linux-dev-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/compression.h')
-rw-r--r--fs/btrfs/compression.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index b8ed97fc6db4..accb1d61df87 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -120,8 +120,7 @@ struct workspace_manager {
wait_queue_head_t ws_wait;
};
-struct list_head *btrfs_get_workspace(struct workspace_manager *wsm,
- unsigned int level);
+struct list_head *btrfs_get_workspace(int type, unsigned int level);
void btrfs_put_workspace(struct workspace_manager *wsm, struct list_head *ws);
struct btrfs_compress_op {