btrfs: manage heuristic workspace as index 0
authorDennis Zhou <dennis@kernel.org>
Mon, 4 Feb 2019 20:19:59 +0000 (15:19 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:31 +0000 (14:13 +0100)
commitca4ac360af94964906149efe166453ac83ae7c43
tree7f236453654db2b790e84bbf978260416a1f01bc
parentacce85de12e68baaef77719685dd8d026a94e7dc
btrfs: manage heuristic workspace as index 0

While the heuristic workspaces aren't really compression workspaces,
they use the same interface for managing them. So rather than branching,
let's just handle them once again as the index 0 compression type.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
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>
fs/btrfs/compression.c
fs/btrfs/compression.h