summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 01:40:58 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:57 +0100
commit975db48330c492a84d8b29b10ae55a30a03dfe0f (patch)
tree8244f6535e83feb6068a7f895e8e396bfd8f4ac9 /fs/btrfs/compression.h
parentbe951045312d963ffeacd6a566a0de87e4784af1 (diff)
downloadlinux-975db48330c492a84d8b29b10ae55a30a03dfe0f.tar.gz
linux-975db48330c492a84d8b29b10ae55a30a03dfe0f.tar.bz2
linux-975db48330c492a84d8b29b10ae55a30a03dfe0f.zip
btrfs: compression: let workspace manager init take only the type
With the access to the workspace structures, we can look it up together with the compression ops inside the workspace manager init helper. 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 7091eae063e5..10f82e791769 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -120,8 +120,7 @@ struct workspace_manager {
wait_queue_head_t ws_wait;
};
-void btrfs_init_workspace_manager(struct workspace_manager *wsm,
- const struct btrfs_compress_op *ops);
+void btrfs_init_workspace_manager(int type);
struct list_head *btrfs_get_workspace(struct workspace_manager *wsm,
unsigned int level);
void btrfs_put_workspace(struct workspace_manager *wsm, struct list_head *ws);