btrfs: zstd use the passed through level instead of default
authorDennis Zhou <dennis@kernel.org>
Mon, 4 Feb 2019 20:20:06 +0000 (15:20 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:33 +0000 (14:13 +0100)
commite0dc87afcdb890e542f6080296ce591cd348c25d
tree079085a26cc502027fb9e384261cda46746b14a4
parentd0ab62ce2ded36294f3a02156415b8157d660b95
btrfs: zstd use the passed through level instead of default

Zstd currently only supports the default level of compression. This
patch switches to using the level passed in for btrfs zstd
configuration.

Zstd workspaces now keep track of the requested level as this can differ
from the size of the workspace.

Reviewed-by: Nikolay Borisov <nborisov@suse.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/zstd.c