diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-01-05 17:43:41 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-25 22:25:56 -0700 |
commit | 7e2277708209af70f0e440a708630a260d6959a4 (patch) | |
tree | 44a07cb6071e6d5272c08b73e03e9cea257f7971 /mm/frontswap.c | |
parent | d866b3027edb8192ef650ac40fd9e7692a3aefbb (diff) |
xfs: report XFS_CORRUPT_ON errors to the health systemcorruption-health-reports_2021-08-25
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 'mm/frontswap.c')
0 files changed, 0 insertions, 0 deletions