summaryrefslogtreecommitdiff
path: root/drivers/staging/gasket
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-01-05 17:43:41 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:21 -0700
commit8adc1a1d30dbfd3d76ebb75edcf8ca063100c1d8 (patch)
tree7ecac75d58e23a5a046ad27d576c1798ba080a38 /drivers/staging/gasket
parentbeeec7b7e668fd176b4c3847ed73e5fc0fcc4c03 (diff)
xfs: report XFS_CORRUPT_ON errors to the health systemcorruption-health-reports_2021-03-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 'drivers/staging/gasket')
0 files changed, 0 insertions, 0 deletions