]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix ext4_error_err save negative errno into superblock
authorYe Bin <yebin10@huawei.com>
Tue, 6 Apr 2021 02:53:31 +0000 (10:53 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 10 Apr 2021 00:58:30 +0000 (20:58 -0400)
commit6a2b9704082f299b8e02f6e5cfcbe2e2df6b6f99
treec944921031972df5ffdf52f7fc3dc5795f59b9cb
parent1ea9a8781a107e06822b2927248197c4b9839f6c
ext4: fix ext4_error_err save negative errno into superblock

Fix As write_mmp_block() so that it returns -EIO instead of 1, so that
the correct error gets saved into the superblock.

Cc: stable@kernel.org
Fixes: d24b85b1e620 ("ext4: save all error info in save_error_info() and drop ext4_set_errno()")
Reported-by: Liu Zhi Qiang <liuzhiqiang26@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20210406025331.148343-1-yebin10@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mmp.c