linux-uconsole/fs/jbd2
zhangyi (F) 267e902d6c jbd2: make sure ESHUTDOWN to be recorded in the journal superblock
[ Upstream commit 0e98c084a2 ]

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:34:51 +01:00
..
checkpoint.c ext4, jbd2: ensure panic when aborting with zero errno 2020-02-24 08:34:39 +01:00
commit.c jbd2: switch to use jbd2_journal_abort() when failed to submit the commit record 2020-02-24 08:34:51 +01:00
journal.c jbd2: make sure ESHUTDOWN to be recorded in the journal superblock 2020-02-24 08:34:51 +01:00
Kconfig jbd2: remove debug dependency on debug_fs and update Kconfig help text 2013-06-12 23:07:51 -04:00
Makefile
recovery.c jbd2: clarify bad journal block checksum message 2018-02-18 21:33:13 -05:00
revoke.c jbd2: fix potential double free 2019-05-22 07:37:44 +02:00
transaction.c jbd2: move the clearing of b_modified flag to the journal_unmap_buffer() 2020-02-19 19:51:59 +01:00