Skip to content

Commit df2fe1a

Browse files
ksawaraygregkh
authored andcommitted
btrfs: fix incorrect log message for nobarrier mount option
commit edf842a upstream. Fix a wrong log message that appears when the "nobarrier" mount option is unset. When "nobarrier" is unset, barrier is actually enabled. However, the log incorrectly stated "turning off barriers". Fixes: eddb1a4 ("btrfs: add reconfigure callback for fs_context") CC: stable@vger.kernel.org # 6.12+ 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 e8cf571 commit df2fe1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
14531453
btrfs_info_if_unset(info, old, NODATACOW, "setting datacow");
14541454
btrfs_info_if_unset(info, old, SSD, "not using ssd optimizations");
14551455
btrfs_info_if_unset(info, old, SSD_SPREAD, "not using spread ssd allocation scheme");
1456-
btrfs_info_if_unset(info, old, NOBARRIER, "turning off barriers");
1456+
btrfs_info_if_unset(info, old, NOBARRIER, "turning on barriers");
14571457
btrfs_info_if_unset(info, old, NOTREELOG, "enabling tree log");
14581458
btrfs_info_if_unset(info, old, SPACE_CACHE, "disabling disk space caching");
14591459
btrfs_info_if_unset(info, old, FREE_SPACE_TREE, "disabling free space tree");

0 commit comments

Comments
 (0)