]> git.itanic.dy.fi Git - linux-stable/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)
commit878520ac45f9f698432d4276db3d9144b83931b6
tree4d2eb8c8fd49bd852ca2be77e53798fa4b19dbdd
parenta562c687d115fe5a90be1e27745cc771c1e6cbd9
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