android_kernel_xiaomi_sm8350/fs/jbd2
zhangyi (F) 4113271807 jbd2: make sure ESHUTDOWN to be recorded in the journal superblock
[ Upstream commit 0e98c084a21177ef136149c6a293b3d1eb33ff92 ]

Commit fb7c02445c ("ext4: pass -ESHUTDOWN code to jbd2 layer") want
to allow jbd2 layer to distinguish shutdown journal abort from other
error cases. So the ESHUTDOWN should be taken precedence over any other
errno which has already been recoded after EXT4_FLAGS_SHUTDOWN is set,
but it only update errno in the journal suoerblock now if the old errno
is 0.

Fixes: fb7c02445c ("ext4: pass -ESHUTDOWN code to jbd2 layer")
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191204124614.45424-4-yi.zhang@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-24 08:36:57 +01:00
..
checkpoint.c ext4, jbd2: ensure panic when aborting with zero errno 2020-02-24 08:36:30 +01:00
commit.c jbd2: switch to use jbd2_journal_abort() when failed to submit the commit record 2020-02-24 08:36:57 +01:00
journal.c jbd2: make sure ESHUTDOWN to be recorded in the journal superblock 2020-02-24 08:36:57 +01:00
Kconfig
Makefile
recovery.c
revoke.c
transaction.c jbd2: move the clearing of b_modified flag to the journal_unmap_buffer() 2020-02-19 19:53:09 +01:00