Many compressors do assign a meaning to level 0: either null compression or the lowest possible level. This differs from our "unset thus default". Thus, let's not unnecessarily confuse users.
Signed-off-by: Adam Borowski <kilob...@angband.pl> --- fs/btrfs/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index f9d4522336db..144fabfbd246 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -551,7 +551,9 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options, compress_force != saved_compress_force)) || (!btrfs_test_opt(info, COMPRESS) && no_compress == 1)) { - btrfs_info(info, "%s %s compression, level %d", + btrfs_printk(info, info->compress_level ? + KERN_INFO"%s %s compression, level %d" : + KERN_INFO"%s %s compression", (compress_force) ? "force" : "use", compress_type, info->compress_level); } -- 2.15.0.rc1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html