]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: save the error code which triggered an ext4_error() in the superblock
authorTheodore Ts'o <tytso@mit.edu>
Wed, 20 Nov 2019 02:54:15 +0000 (21:54 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 26 Dec 2019 16:28:23 +0000 (11:28 -0500)
commit2c44a9b25c3b195dae8de3aa5534429c872d89d9
tree4d2eb8c8fd49bd852ca2be77e53798fa4b19dbdd
parente811cd74c12a0342d870888d1d05142b188dc73f
ext4: save the error code which triggered an ext4_error() in the superblock

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: Theodore Ts'o <tytso@mit.edu>
12 files changed:
fs/ext4/balloc.c
fs/ext4/ext4.h
fs/ext4/ext4_jbd2.c
fs/ext4/extents.c
fs/ext4/ialloc.c
fs/ext4/inline.c
fs/ext4/inode.c
fs/ext4/mballoc.c
fs/ext4/mmp.c
fs/ext4/namei.c
fs/ext4/super.c
fs/ext4/xattr.c