btrfs: compression: pass type to btrfs_put_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:59 +0000 (12:46 +0100)
commita3bbd2a9ee3c08b60b3127843866bdc76757c24f
tree2d04c48c2f8906dda7ff552d873f81b51b250233
parentc778df140644142fb7e12b7e468b137721d85890
btrfs: compression: pass type to btrfs_put_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 free_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