]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: allow setting zlib compression level via :9
authorAdam Borowski <kilobyte@angband.pl>
Fri, 15 Sep 2017 15:36:58 +0000 (17:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 1 Nov 2017 19:45:34 +0000 (20:45 +0100)
commit201b4a0a6b802cf01d9bd66296dcccb0d26cc0c4
treeb2c77afc273d184129350162e5b564a545f59916
parent429b710611cdac973d938dd8d38e973493afad85
btrfs: allow setting zlib compression level via :9

This is bikeshedding, but it seems people are drastically more likely to
understand "zlib:9" as compression level rather than an algorithm
version compared to "zlib9".

Based on feedback on the mailinglist, the ":9" will be the only accepted
syntax. The level must be a single digit. Unrecognized format will
result to the default, for forward compatibility in a similar way the
compression algorithm specifier was relaxed in commit
abc044f97ce469ec22c5 ("btrfs: prepare for extensions in compression
options").

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Reviewed-by: David Sterba <dsterba@suse.com>
[ tighten the accepted format ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/super.c