Skip to content

Commit db993f4

Browse files
ksawaraykdave
authored andcommitted
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: eddb1a4 ("btrfs: add reconfigure callback for fs_context") CC: [email protected] # 6.8+ Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Kyoji Ogasawara <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent f0ac63f commit db993f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/btrfs/super.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
14391439
{
14401440
btrfs_info_if_set(info, old, NODATASUM, "setting nodatasum");
14411441
btrfs_info_if_set(info, old, DEGRADED, "allowing degraded mounts");
1442-
btrfs_info_if_set(info, old, NODATASUM, "setting nodatasum");
1442+
btrfs_info_if_set(info, old, NODATACOW, "setting nodatacow");
14431443
btrfs_info_if_set(info, old, SSD, "enabling ssd optimizations");
14441444
btrfs_info_if_set(info, old, SSD_SPREAD, "using spread ssd allocation scheme");
14451445
btrfs_info_if_set(info, old, NOBARRIER, "turning off barriers");
@@ -1461,6 +1461,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
14611461
btrfs_info_if_set(info, old, IGNOREMETACSUMS, "ignoring meta csums");
14621462
btrfs_info_if_set(info, old, IGNORESUPERFLAGS, "ignoring unknown super block flags");
14631463

1464+
btrfs_info_if_unset(info, old, NODATASUM, "setting datasum");
14641465
btrfs_info_if_unset(info, old, NODATACOW, "setting datacow");
14651466
btrfs_info_if_unset(info, old, SSD, "not using ssd optimizations");
14661467
btrfs_info_if_unset(info, old, SSD_SPREAD, "not using spread ssd allocation scheme");

0 commit comments

Comments
 (0)