mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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: eddb1a433f ("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>
This commit is contained in:
committed by
David Sterba
parent
dc61d97b0b
commit
edf842abe4
@@ -1462,7 +1462,7 @@ static void btrfs_emit_options(struct btrfs_fs_info *info,
|
||||
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");
|
||||
btrfs_info_if_unset(info, old, NOBARRIER, "turning off barriers");
|
||||
btrfs_info_if_unset(info, old, NOBARRIER, "turning on barriers");
|
||||
btrfs_info_if_unset(info, old, NOTREELOG, "enabling tree log");
|
||||
btrfs_info_if_unset(info, old, SPACE_CACHE, "disabling disk space caching");
|
||||
btrfs_info_if_unset(info, old, FREE_SPACE_TREE, "disabling free space tree");
|
||||
|
||||
Reference in New Issue
Block a user