]> 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)
commit5e72084d7b15bdfe2b3cd7a069b5c6a7b00a4fcb
tree079085a26cc502027fb9e384261cda46746b14a4
parent647be71ca8eae36fc268da6e2f198c91affff316
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