]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: reject the 'commit' option on ext2 filesystems
authorEric Biggers <ebiggers@google.com>
Tue, 10 May 2022 18:32:32 +0000 (11:32 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 May 2022 15:24:22 +0000 (11:24 -0400)
commit5d96ed527ae4cb03acc10b104cdf884b33dd3bee
tree13636c9efca665671e87d787ae0078a5910a7a27
parentc1483a90e6f2abc512baed264f9d1e8ee4898354
ext4: reject the 'commit' option on ext2 filesystems

The 'commit' option is only applicable for ext3 and ext4 filesystems,
and has never been accepted by the ext2 filesystem driver, so the ext4
driver shouldn't allow it on ext2 filesystems.

This fixes a failure in xfstest ext4/053.

Fixes: 8bd2073b2c23 ("ext4: check incompatible mount options while mounting ext2/3")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Ritesh Harjani <ritesh.list@gmail.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Link: https://lore.kernel.org/r/20220510183232.172615-1-ebiggers@kernel.org
fs/ext4/super.c