aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-02 00:53:31 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:57 +0100
commitbe951045312d963ffeacd6a566a0de87e4784af1 (patch)
tree5e34516fd7e2fb75d51ebff930b9100dfe99f497 /fs/btrfs/compression.h
parentbtrfs: switch compression callbacks to direct calls (diff)
downloadlinux-dev-be951045312d963ffeacd6a566a0de87e4784af1.tar.xz
linux-dev-be951045312d963ffeacd6a566a0de87e4784af1.zip
btrfs: compression: attach workspace manager to the ops
There's a lot of indirection when the generic code calls into algo-specific callbacks to reach the private workspace manager structure and back to the generic code. To simplify that, export the workspace manager for heuristic, LZO and ZLIB, while ZSTD is going to use it's own manager. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 7db14d3166b5..7091eae063e5 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -140,6 +140,7 @@ struct btrfs_compress_op {
void (*free_workspace)(struct list_head *workspace);
+ struct workspace_manager *workspace_manager;
/* Maximum level supported by the compression algorithm */
unsigned int max_level;
unsigned int default_level;