summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_inode_fork.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-10-25 17:14:44 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-10-26 18:32:17 -0700
commit8bcea88bf3169a7e21d3b45efc338d4e13e0b235 (patch)
treef6b1057e668cc15827c7e4a476c51734a8507e03 /fs/xfs/libxfs/xfs_inode_fork.c
parentf678930f83c79793310be7ea9fa9839dd538d0e1 (diff)
xfs: report XFS_CORRUPT_ON errors to the health systemcorruption-health-reports_2020-10-26
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/libxfs/xfs_inode_fork.c')
0 files changed, 0 insertions, 0 deletions