diff options
| author | 2025-08-13 16:36:57 +0930 | |
|---|---|---|
| committer | 2025-09-23 08:49:15 +0200 | |
| commit | 6f9c3f48acffaffe7bb643b3bc04f8a99021179a (patch) | |
| tree | fd8468dddbb574c7eebd6e58a7e3391567be66e8 /fs/btrfs/dev-replace.c | |
| parent | btrfs: add workspace manager initialization for zstd (diff) | |
| download | wireguard-linux-6f9c3f48acffaffe7bb643b3bc04f8a99021179a.tar.xz wireguard-linux-6f9c3f48acffaffe7bb643b3bc04f8a99021179a.zip | |
btrfs: add generic workspace manager initialization
This involves:
- Add (alloc|free)_workspace_manager helpers.
These are the helper to alloc/free workspace_manager structure.
The allocator will allocate a workspace_manager structure, initialize
it, and pre-allocate one workspace for it.
The freer will do the cleanup and set the manager pointer to NULL.
- Call alloc_workspace_manager() inside btrfs_alloc_compress_wsm()
- Call alloc_workspace_manager() inside btrfs_free_compress_wsm()
For none, zlib and lzo compression algorithms.
For now the generic per-fs workspace managers won't really have any effect,
and all compression is still going through the global workspace manager.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
