diff options
author | David Sterba <dsterba@suse.com> | 2019-10-04 03:50:28 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 14:46:58 +0300 |
commit | 5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed (patch) | |
tree | 0e3638d8a24e22ddc206233f22b66e86c00e4aca /fs/btrfs/compression.h | |
parent | bd3a5287cc20e37f1e365be1f742b6c574e3f83c (diff) | |
download | linux-5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed.tar.xz |
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.h | 3 |
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 { |