xfs: convert xfs_alloc_vextent_iterate_ags() to use perag walker
authorDave Chinner <dchinner@redhat.com>
Sun, 12 Feb 2023 22:14:54 +0000 (09:14 +1100)
committerDave Chinner <dchinner@redhat.com>
Sun, 12 Feb 2023 22:14:54 +0000 (09:14 +1100)
commit3432ef6111997f39d2f708dd508159dfaca72942
treeb481d532ef756c48dc2db4b2d2656ba391872bf1
parent8b81356825ffb96b3b167b4dabbbbdb506bb0e0b
xfs: convert xfs_alloc_vextent_iterate_ags() to use perag walker

Now that the AG iteration code in the core allocation code has been
cleaned up, we can easily convert it to use a for_each_perag..()
variant to use active references and skip AGs that it can't get
active references on.

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