mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
btrfs: fix printing of mount info messages for NODATACOW/NODATASUM
The NODATASUM message was printed twice by mistake and the NODATACOW was
missing from the 'unset' part. Fix the duplication and make the output
look the same.
Fixes: eddb1a433f ("btrfs: add reconfigure callback for fs_context")
CC: stable@vger.kernel.org # 6.8+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Kyoji Ogasawara <sawara04.o@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
b435ab556b
commit
74857fdc5d
|
|
@ -1439,7 +1439,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
|
|||
{
|
||||
btrfs_info_if_set(info, old, NODATASUM, "setting nodatasum");
|
||||
btrfs_info_if_set(info, old, DEGRADED, "allowing degraded mounts");
|
||||
btrfs_info_if_set(info, old, NODATASUM, "setting nodatasum");
|
||||
btrfs_info_if_set(info, old, NODATACOW, "setting nodatacow");
|
||||
btrfs_info_if_set(info, old, SSD, "enabling ssd optimizations");
|
||||
btrfs_info_if_set(info, old, SSD_SPREAD, "using spread ssd allocation scheme");
|
||||
btrfs_info_if_set(info, old, NOBARRIER, "turning off barriers");
|
||||
|
|
@ -1461,6 +1461,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
|
|||
btrfs_info_if_set(info, old, IGNOREMETACSUMS, "ignoring meta csums");
|
||||
btrfs_info_if_set(info, old, IGNORESUPERFLAGS, "ignoring unknown super block flags");
|
||||
|
||||
btrfs_info_if_unset(info, old, NODATASUM, "setting datasum");
|
||||
btrfs_info_if_unset(info, old, NODATACOW, "setting datacow");
|
||||
btrfs_info_if_unset(info, old, SSD, "not using ssd optimizations");
|
||||
btrfs_info_if_unset(info, old, SSD_SPREAD, "not using spread ssd allocation scheme");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user