Skip to content
Snippets Groups Projects
Commit 84d9f3f5 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Cheng Jian
Browse files

ext4: save the error code which triggered an ext4_error() in the superblock

mainline inclusion
from mainline-v5.6-rc1
commit 878520ac
category: bugfix
bugzilla: 46758
CVE: NA

-----------------------------------------------

This allows the cause of an ext4_error() report to be categorized
based on whether it was triggered due to an I/O error, or an memory
allocation error, or other possible causes.  Most errors are caused by
a detected file system inconsistency, so the default code stored in
the superblock will be EXT4_ERR_EFSCORRUPTED.

Link: https://lore.kernel.org/r/20191204032335.7683-1-tytso@mit.edu


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>

conflicts:
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/namei.c

Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 1eb354f0
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment