]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: make 'abort' mount option handling standard
authorJan Kara <jack@suse.cz>
Fri, 16 Jun 2023 16:50:50 +0000 (18:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:37 +0000 (11:05 +0100)
commit1578f57a3fc338f0607c32002c40e82347b8b443
tree19127d121fa1c953853f9a136d9c0f5fdec646bc
parentef5706bed97e240b4abf4233ceb03da7336bc775
ext4: make 'abort' mount option handling standard

commit 22b8d707b07e6e06f50fe1d9ca8756e1f894eb0d upstream.

'abort' mount option is the only mount option that has special handling
and sets a bit in sbi->s_mount_flags. There is not strong reason for
that so just simplify the code and make 'abort' set a bit in
sbi->s_mount_opt2 as any other mount option. This simplifies the code
and will allow us to drop EXT4_MF_FS_ABORTED completely in the following
patch.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230616165109.21695-4-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Stable-dep-of: 76486b104168 ("ext4: avoid remount errors with 'abort' mount option")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4.h
fs/ext4/super.c