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)
commite18333a7cb97d838c09802092fcecd3269363ecb
tree891fcb04e1cd69b5a23529a5029df99b3ff5b4d6
parentefad8a853ad2057f96664328a0d327a05ce39c76
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