]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: define compression levels statically
authorDavid Sterba <dsterba@suse.com>
Fri, 9 Aug 2019 14:25:34 +0000 (16:25 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:11 +0000 (14:59 +0200)
commit8694f511c67a7604286a973e6b218b0413fa36dd
tree891fcb04e1cd69b5a23529a5029df99b3ff5b4d6
parenteae839dc691d44b87758f6ea110d47531dfdf675
btrfs: define compression levels statically

The maximum and default levels do not change and can be defined
directly. The set_level callback was a temporary solution and will be
removed.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.h
fs/btrfs/lzo.c
fs/btrfs/zlib.c
fs/btrfs/zstd.c