Dave Chinner 76257a1587 xfs: introduce xfs_for_each_perag_wrap()
In several places we iterate every AG from a specific start agno and
wrap back to the first AG when we reach the end of the filesystem to
continue searching. We don't have a primitive for this iteration
yet, so add one for conversion of these algorithms to per-ag based
iteration.

The filestream AG select code is a mess, and this initially makes it
worse. The per-ag selection needs to be driven completely into the
filestream code to clean this up and it will be done in a future
patch that makes the filestream allocator use active per-ag
references correctly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
2023-02-13 09:14:53 +11:00
..
2022-01-15 16:30:29 +02:00
2021-10-22 16:00:31 -07:00
2022-10-19 12:55:42 +02:00
2022-10-19 12:55:42 +02:00
2022-07-22 10:58:39 -07:00
2022-06-23 13:34:38 -07:00
2022-12-13 19:29:45 -08:00
2022-10-10 20:32:10 -07:00
2022-05-11 17:01:22 +10:00
2021-08-19 10:07:14 -07:00
2023-02-10 09:06:06 -08:00