]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8898d0880a32c89e97a292379853f10bfb00ea45
tree079085a26cc502027fb9e384261cda46746b14a4
parent25e3a033d51db76cefb3f30828181b8f355dd353
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