]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: reject the 'data_err=abort' option in nojournal mode
authorBaokun Li <libaokun1@huawei.com>
Wed, 22 Jan 2025 11:05:27 +0000 (19:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:06 +0000 (14:40 +0200)
commit6944537397b31c58b3060f94dbbbe5eaedcf8e75
tree1f79383f32286840e0226b4d6ff5d5df029e8c9c
parente472c3d8ad57abe51c4439fc78f63ad7a6a5cde7
ext4: reject the 'data_err=abort' option in nojournal mode

[ Upstream commit 26343ca0df715097065b02a6cddb4a029d5b9327 ]

data_err=abort aborts the journal on I/O errors. However, this option is
meaningless if journal is disabled, so it is rejected in nojournal mode
to reduce unnecessary checks. Also, this option is ignored upon remount.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250122110533.4116662-4-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/super.c