diff options
author | zhangyi (F) <yi.zhang@huawei.com> | 2019-12-04 20:46:13 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-01-25 03:00:20 -0500 |
commit | 0e98c084a21177ef136149c6a293b3d1eb33ff92 (patch) | |
tree | 5acdd78d124196de0d1a90ee8d207d16710f4e3a /include/linux/jbd2.h | |
parent | 51f57b01e4a3c7d7bdceffd84de35144e8c538e7 (diff) |
jbd2: make sure ESHUTDOWN to be recorded in the journal superblock
Commit fb7c02445c49 ("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: fb7c02445c49 ("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>
Diffstat (limited to 'include/linux/jbd2.h')
0 files changed, 0 insertions, 0 deletions