]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't show data=<mode> option if defaulted
authorTyson Nottingham <tgnottingham@gmail.com>
Fri, 30 Mar 2018 04:56:10 +0000 (00:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Mar 2018 04:56:10 +0000 (00:56 -0400)
commit0dc651de952c1f88529fe665959a9a004956ad18
treed211b746980f21a0cdc9775d1a82633963dfc9a4
parent0e44dd2d6fb9a7856eb93ca96857d9177886f96d
ext4: don't show data=<mode> option if defaulted

Previously, mount -l would show data=<mode> even if the ext4 default
journaling mode was being used. Change this to be consistent with the
rest of the options.

Ext4 already did the right thing when the journaling mode being used
matched the one specified in the superblock's default mount options. The
reason it failed to do the right thing for the ext4 defaults is that,
when set, they were never included in sbi->s_def_mount_opt (unlike the
superblock's defaults, which were).

Signed-off-by: Tyson Nottingham <tgnottingham@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c