xfs: xfs_buf_corruption_error should take __this_address
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Mar 2020 17:37:54 +0000 (10:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Mar 2020 14:58:12 +0000 (07:58 -0700)
commite83cf875d67a6cb9ddfaa8b45d2fa93d12b5c66f
tree89ed9aacd12e239053f844b373b00be499be2621
parent8d57c21600a514d7a9237327c2496ae159bab5bb
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>
fs/xfs/xfs_buf.c
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h