diff options
author | David Sterba <dsterba@suse.com> | 2019-08-09 16:25:34 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:11 +0200 |
commit | e18333a7cb97d838c09802092fcecd3269363ecb (patch) | |
tree | 891fcb04e1cd69b5a23529a5029df99b3ff5b4d6 /fs/btrfs/zstd.c | |
parent | efad8a853ad2057f96664328a0d327a05ce39c76 (diff) | |
download | linux-e18333a7cb97d838c09802092fcecd3269363ecb.tar.bz2 |
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>
Diffstat (limited to 'fs/btrfs/zstd.c')
-rw-r--r-- | fs/btrfs/zstd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/zstd.c b/fs/btrfs/zstd.c index 3837ca180d52..b2b23a6a497d 100644 --- a/fs/btrfs/zstd.c +++ b/fs/btrfs/zstd.c @@ -729,4 +729,6 @@ const struct btrfs_compress_op btrfs_zstd_compress = { .decompress_bio = zstd_decompress_bio, .decompress = zstd_decompress, .set_level = zstd_set_level, + .max_level = ZSTD_BTRFS_MAX_LEVEL, + .default_level = ZSTD_BTRFS_DEFAULT_LEVEL, }; |