mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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>
This commit is contained in:
parent
1e4eb74654
commit
be95104531
5 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue