summaryrefslogtreecommitdiff
path: root/lib/of-reconfig-notifier-error-inject.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 10:46:26 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-10-22 16:40:39 -0700
commit0593edc0f0abbd181095054078fc941b87f60a53 (patch)
tree0d140891d561acd34de3ffc046dabb3bf1b4a749 /lib/of-reconfig-notifier-error-inject.c
parenta70e431289046e5de290d8e4566d57de4e578b79 (diff)
xfs: report XFS_CORRUPT_ON errors to the health systemcorruption-health-reports_2021-10-22
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 'lib/of-reconfig-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions