diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 10:46:26 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-12-15 17:28:55 -0800 |
commit | 46870d619b03a76ea0a8c0a3c68f4406fbd94452 (patch) | |
tree | ae087a31a2290bee71bdbc09d0e4224c11792f2c /arch/microblaze | |
parent | 5fcc1d1c2d7c5653171f4192c89d712662676990 (diff) |
xfs: report XFS_CORRUPT_ON errors to the health systemcorruption-health-reports_2021-12-15
Whenever we encounter XFS_CORRUPT_ON failures, we should report that to
the health monitoring system for later reporting.
I started with this and massaged everything until it built:
@@
expression mp, test;
@@
- if (XFS_CORRUPT_ON(mp, test)) return -EFSCORRUPTED;
+ if (XFS_CORRUPT_ON(mp, test)) { xfs_btree_mark_sick(cur); return -EFSCORRUPTED; }
@@
expression mp, test;
identifier label, error;
@@
- if (XFS_CORRUPT_ON(mp, test)) { error = -EFSCORRUPTED; goto label; }
+ if (XFS_CORRUPT_ON(mp, test)) { xfs_btree_mark_sick(cur); error = -EFSCORRUPTED; goto label; }
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'arch/microblaze')
0 files changed, 0 insertions, 0 deletions