summaryrefslogtreecommitdiff
path: root/fs/btrfs/lzo.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
commit2510307e6c78d1d9a59c85164cbff66f8a9f3fed (patch)
treefdcfdcf75fd6a9cbae2700c9ba38ae1c1597abee /fs/btrfs/lzo.c
parent2dba714390f1ff7a8a37cc8c3b374d71d3e84af7 (diff)
downloadlinux-2510307e6c78d1d9a59c85164cbff66f8a9f3fed.tar.xz
btrfs: compression: inline cleanup_workspace_manager
Replace loop calling to all algos with a list of direct calls to the cleanup 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/lzo.c')
-rw-r--r--fs/btrfs/lzo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c
index 6aa602040506..6f4619e76c11 100644
--- a/fs/btrfs/lzo.c
+++ b/fs/btrfs/lzo.c
@@ -63,11 +63,6 @@ struct workspace {
static struct workspace_manager wsm;
-static void lzo_cleanup_workspace_manager(void)
-{
- btrfs_cleanup_workspace_manager(BTRFS_COMPRESS_LZO);
-}
-
static struct list_head *lzo_get_workspace(unsigned int level)
{
return btrfs_get_workspace(&wsm, level);
@@ -499,7 +494,6 @@ out:
const struct btrfs_compress_op btrfs_lzo_compress = {
.workspace_manager = &wsm,
- .cleanup_workspace_manager = lzo_cleanup_workspace_manager,
.get_workspace = lzo_get_workspace,
.put_workspace = lzo_put_workspace,
.alloc_workspace = lzo_alloc_workspace,