xfs: convert raw ag walks to use for_each_perag
authorDave Chinner <dchinner@redhat.com>
Wed, 2 Jun 2021 00:48:24 +0000 (10:48 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 2 Jun 2021 00:48:24 +0000 (10:48 +1000)
commit934933c3eec9e4a5826d3d7a47aca0742337fded
tree5254dae6d715f237a952daf6c9ad61d21d683d83
parentf250eedcf7621b9a56d563912b4eeacd524422c7
xfs: convert raw ag walks to use for_each_perag

Convert the raw walks to an iterator, pulling the current AG out of
pag->pag_agno instead of the loop iterator variable.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_types.c
fs/xfs/scrub/bmap.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_reflink.c