]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: compression: pass type to btrfs_get_workspace
authorDavid Sterba <dsterba@suse.com>
Fri, 4 Oct 2019 00:50:28 +0000 (02:50 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:58 +0000 (12:46 +0100)
commite61e48fec4c275a06eff320c677946464c24ff84
tree0e3638d8a24e22ddc206233f22b66e86c00e4aca
parente57b85ee636284585b8888ab1998578fd843399e
btrfs: compression: pass type to btrfs_get_workspace

We can infer the workspace_manager from type and the type will be used
in the following patch to call a common helper for alloc_workspace.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/zlib.c