jbd2: abort journal when detecting metadata writeback error of fs dev
authorZhihao Cheng <chengzhihao1@huawei.com>
Wed, 13 Dec 2023 01:32:23 +0000 (09:32 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 5 Jan 2024 04:42:21 +0000 (23:42 -0500)
commitb4e73e61268903d82dacff2bc6f4bb766c6ed555
tree8b82c451a7d6fd53ebcebb7fb01e35b29b856f3a
parent8a4fd33d879fb303b207f06ea6340d73f698c4ed
jbd2: abort journal when detecting metadata writeback error of fs dev

This is a replacement solution of commit bc71726c725767 ("ext4: abort
the filesystem if failed to async write metadata buffer"), JBD2 can
detect metadata writeback error of fs dev by 'j_fs_dev_wb_err'.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20231213013224.2100050-5-chengzhihao1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/transaction.c