xfs: xfs_buf_corruption_error should take __this_address
Add a xfs_failaddr_t parameter to this function so that callers can potentially pass in (and therefore report) the exact point in the code where we decided that a metadata buffer was corrupt. This enables us to wire it up to checking functions that have to run outside of verifiers. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
@@ -1591,7 +1591,7 @@ __xfs_buf_mark_corrupt(
|
||||
{
|
||||
ASSERT(bp->b_flags & XBF_DONE);
|
||||
|
||||
xfs_buf_corruption_error(bp);
|
||||
xfs_buf_corruption_error(bp, fa);
|
||||
xfs_buf_stale(bp);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user