]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: xfs_buf_corruption_error should take __this_address
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 26 Oct 2022 06:28:22 +0000 (11:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2022 08:20:33 +0000 (10:20 +0200)
commit343f1ee4f94255813e8e5ba04b9c7b6b76cc0c85
treeb2f561310a3a24f4e5e8977ca8ac41fa82a18a68
parent40841c6ef3bcb4f42293b1b483a8764b630c7553
xfs: xfs_buf_corruption_error should take __this_address

commit 1b629ada58862c58f4203477117fc858c2f3b62d upstream.

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>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_buf.c
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h