Skip to content

Commit e8795af

Browse files
ksawaraykdave
authored andcommitted
btrfs: fix incorrect log message for nobarrier mount option
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: [email protected] # 6.12+ 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 f9b6556 commit e8795af

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
@@ -1462,7 +1462,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
14621462
btrfs_info_if_unset(info, old, NODATACOW, "setting datacow");
14631463
btrfs_info_if_unset(info, old, SSD, "not using ssd optimizations");
14641464
btrfs_info_if_unset(info, old, SSD_SPREAD, "not using spread ssd allocation scheme");
1465-
btrfs_info_if_unset(info, old, NOBARRIER, "turning off barriers");
1465+
btrfs_info_if_unset(info, old, NOBARRIER, "turning on barriers");
14661466
btrfs_info_if_unset(info, old, NOTREELOG, "enabling tree log");
14671467
btrfs_info_if_unset(info, old, SPACE_CACHE, "disabling disk space caching");
14681468
btrfs_info_if_unset(info, old, FREE_SPACE_TREE, "disabling free space tree");

0 commit comments

Comments
 (0)