]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: xfs_buf_corruption_error should take __this_address
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 May 2020 21:37:08 +0000 (17:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 May 2020 21:37:08 +0000 (17:37 -0400)
commit9f09216e8afc075e5f20e6cb9a2f8946fa1ef461
tree6a0d22ad45fe66d2ab66d9f43c952529f76c4752
parent1be76d11d03608ff8d0470c877da1d8f1ef3b018
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.

Source kernel commit: e83cf875d67a6cb9ddfaa8b45d2fa93d12b5c66f

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/rdwr.c
libxfs/util.c