diff options
| author | Dennis Zhou <dennis@kernel.org> | 2019-02-04 23:20:02 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2019-02-25 16:13:31 +0300 |
| commit | 929f4baf93173372a81ea27371c419c99bbc08d7 (patch) | |
| tree | 28d0eac1d6c20a6dfed8e0c360ca643c648e4777 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 1666edabc8b4c2c521021b2ec2fcf2010a592b48 (diff) | |
| download | linux-929f4baf93173372a81ea27371c419c99bbc08d7.tar.xz | |
btrfs: add compression interface in (get/put)_workspace
There are two levels of workspace management. First, alloc()/free()
which are responsible for actually creating and destroy workspaces.
Second, at a higher level, get()/put() which is the compression code
asking for a workspace from a workspace_manager.
The compression code shouldn't really care how it gets a workspace, but
that it got a workspace. This adds get_workspace() and put_workspace()
to be the higher level interface which is responsible for indexing into
the appropriate compression type. It also introduces
btrfs_put_workspace() and btrfs_get_workspace() to be the generic
implementations of the higher interface.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
