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>
This commit is contained in:
@@ -121,7 +121,7 @@ struct workspace_manager {
|
||||
};
|
||||
|
||||
struct list_head *btrfs_get_workspace(int type, unsigned int level);
|
||||
void btrfs_put_workspace(struct workspace_manager *wsm, struct list_head *ws);
|
||||
void btrfs_put_workspace(int type, struct list_head *ws);
|
||||
|
||||
struct btrfs_compress_op {
|
||||
void (*free_workspace)(struct list_head *workspace);
|
||||
|
Reference in New Issue
Block a user