aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-02 01:08:03 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:57 +0100
commitd551703347263b7f79168e51c2f999cb883b8d65 (patch)
tree5b387a391a2e9bff36521251faa34850ad23f5be /fs/btrfs/compression.h
parentbtrfs: compression: let workspace manager init take only the type (diff)
downloadlinux-dev-d551703347263b7f79168e51c2f999cb883b8d65.tar.xz
linux-dev-d551703347263b7f79168e51c2f999cb883b8d65.zip
btrfs: compression: inline init_workspace_manager
Replace loop calling to all algos with a list of direct calls to the init manager callback. When that becomes trivial it is replaced by direct call to the 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, 0 insertions, 3 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 10f82e791769..12a46139c389 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -120,15 +120,12 @@ struct workspace_manager {
wait_queue_head_t ws_wait;
};
-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);
void btrfs_cleanup_workspace_manager(struct workspace_manager *wsm);
struct btrfs_compress_op {
- void (*init_workspace_manager)(void);
-
void (*cleanup_workspace_manager)(void);
struct list_head *(*get_workspace)(unsigned int level);