summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/common.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-02-19 17:01:55 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-06-01 21:16:33 -0700
commit99f11fe23bea36fb999669012c6555c88192d0c3 (patch)
tree851eef9157c04ab7473f2786e5eba543405541ad /fs/xfs/scrub/common.c
parent667eda170cd9c70dc779163220aa0b3717ddf1a8 (diff)
xfs: report XFS_CORRUPT_ON errors to the health systemcorruption-health-reports_2020-06-01
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 <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/common.c')
0 files changed, 0 insertions, 0 deletions