xfs: fix perag loop in xchk_bmap_check_rmaps
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:19 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:04 +0000 (15:25 -0800)
commit033985b6fe875a7a971cf4e3941e1f3085ba037c
tree93053a582eb1423c2b8ed922d9a01894a86dd938
parente74331d6fa2c21a8ecccfe0648dad5193b83defe
xfs: fix perag loop in xchk_bmap_check_rmaps

sparse complains that we can return an uninitialized error from this
function and that pag could be uninitialized.  We know that there are no
zero-AG filesystems and hence we had to call xchk_bmap_check_ag_rmaps at
least once, so this is not actually possible, but I'm too worn out from
automated complaints from unsophisticated AIs so let's just fix this and
move on to more interesting problems, eh?

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/bmap.c