xfs: fold perag loop iteration logic into helper function
authorBrian Foster <bfoster@redhat.com>
Thu, 14 Oct 2021 19:56:08 +0000 (12:56 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 19 Oct 2021 18:45:12 +0000 (11:45 -0700)
commitbf2307b195135ed9c95eebb38920d8bd41843092
tree274b85c5c8f67dd9f583feb572f3286643e3cc8c
parent53eb47b491c86ab23787fa561a6dc8378cb0eb36
xfs: fold perag loop iteration logic into helper function

Fold the loop iteration logic into a helper in preparation for
further fixups. No functional change in this patch.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_ag.h