diff options
| author | David Sterba <[email protected]> | 2019-10-01 22:53:31 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-11-18 11:46:57 +0000 |
| commit | be951045312d963ffeacd6a566a0de87e4784af1 (patch) | |
| tree | 5e34516fd7e2fb75d51ebff930b9100dfe99f497 /fs/btrfs/compression.c | |
| parent | btrfs: switch compression callbacks to direct calls (diff) | |
| download | kernel-be951045312d963ffeacd6a566a0de87e4784af1.tar.gz kernel-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 <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
| -rw-r--r-- | fs/btrfs/compression.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 87bac8f73a99..e650125b1d2b 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -920,6 +920,7 @@ fail: } const struct btrfs_compress_op btrfs_heuristic_compress = { + .workspace_manager = &heuristic_wsm, .init_workspace_manager = heuristic_init_workspace_manager, .cleanup_workspace_manager = heuristic_cleanup_workspace_manager, .get_workspace = heuristic_get_workspace, |
