Skip to content

Commit e8dd21d

Browse files
ksawaraygregkh
authored andcommitted
btrfs: fix printing of mount info messages for NODATACOW/NODATASUM
commit 74857fd upstream. 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: 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0a9ce99 commit e8dd21d

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
@@ -1430,7 +1430,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
14301430
{
14311431
btrfs_info_if_set(info, old, NODATASUM, "setting nodatasum");
14321432
btrfs_info_if_set(info, old, DEGRADED, "allowing degraded mounts");
1433-
btrfs_info_if_set(info, old, NODATASUM, "setting nodatasum");
1433+
btrfs_info_if_set(info, old, NODATACOW, "setting nodatacow");
14341434
btrfs_info_if_set(info, old, SSD, "enabling ssd optimizations");
14351435
btrfs_info_if_set(info, old, SSD_SPREAD, "using spread ssd allocation scheme");
14361436
btrfs_info_if_set(info, old, NOBARRIER, "turning off barriers");
@@ -1452,6 +1452,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
14521452
btrfs_info_if_set(info, old, IGNOREMETACSUMS, "ignoring meta csums");
14531453
btrfs_info_if_set(info, old, IGNORESUPERFLAGS, "ignoring unknown super block flags");
14541454

1455+
btrfs_info_if_unset(info, old, NODATASUM, "setting datasum");
14551456
btrfs_info_if_unset(info, old, NODATACOW, "setting datacow");
14561457
btrfs_info_if_unset(info, old, SSD, "not using ssd optimizations");
14571458
btrfs_info_if_unset(info, old, SSD_SPREAD, "not using spread ssd allocation scheme");

0 commit comments

Comments
 (0)