]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: fix ext4_show_options for file systems w/o journal
authorDebabrata Banerjee <dbanerje@akamai.com>
Wed, 1 May 2019 03:08:15 +0000 (23:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 05:39:53 +0000 (07:39 +0200)
commit3f28fcc373e11f2bba8e249fe3387d58135ba941
treed2d4ed2fb8e5eddc313a8b56d4ec34830e8c9fa2
parent01303c3db6237055212df0da00dfc870873d607f
ext4: fix ext4_show_options for file systems w/o journal

commit 50b29d8f033a7c88c5bc011abc2068b1691ab755 upstream.

Instead of removing EXT4_MOUNT_JOURNAL_CHECKSUM from s_def_mount_opt as
I assume was intended, all other options were blown away leading to
_ext4_show_options() output being incorrect.

Fixes: 1e381f60dad9 ("ext4: do not allow journal_opts for fs w/o journal")
Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c