summaryrefslogtreecommitdiff
path: root/fs/btrfs/zlib.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-02 02:08:03 +0300
committerDavid Sterba <dsterba@suse.com>2019-11-18 14:46:57 +0300
commitd551703347263b7f79168e51c2f999cb883b8d65 (patch)
tree5b387a391a2e9bff36521251faa34850ad23f5be /fs/btrfs/zlib.c
parent975db48330c492a84d8b29b10ae55a30a03dfe0f (diff)
downloadlinux-d551703347263b7f79168e51c2f999cb883b8d65.tar.xz
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/zlib.c')
-rw-r--r--fs/btrfs/zlib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c
index be964128dba3..39f1d0f1b286 100644
--- a/fs/btrfs/zlib.c
+++ b/fs/btrfs/zlib.c
@@ -29,11 +29,6 @@ struct workspace {
static struct workspace_manager wsm;
-static void zlib_init_workspace_manager(void)
-{
- btrfs_init_workspace_manager(BTRFS_COMPRESS_ZLIB);
-}
-
static void zlib_cleanup_workspace_manager(void)
{
btrfs_cleanup_workspace_manager(&wsm);
@@ -415,7 +410,6 @@ next:
const struct btrfs_compress_op btrfs_zlib_compress = {
.workspace_manager = &wsm,
- .init_workspace_manager = zlib_init_workspace_manager,
.cleanup_workspace_manager = zlib_cleanup_workspace_manager,
.get_workspace = zlib_get_workspace,
.put_workspace = zlib_put_workspace,