xfs: initialize the check_owner object fully
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:15 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:02 +0000 (15:25 -0800)
commitfcd2a43488d5a211aec94e28369b2a72c28258a2
tree4bbde39a12fd499f9e545360ff16ee8ec946b279
parent48ff40458f871fb19e7b1b40e0e5084b8751d9cb
xfs: initialize the check_owner object fully

Initialize the check_owner list head so that we don't corrupt the list.
Reduce the scope of the object pointer.

Fixes: 858333dcf021 ("xfs: check btree block ownership with bnobt/rmapbt when scrubbing btree")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/btree.c