]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: convert xfs_alloc_vextent_iterate_ags() to use perag walker
authorDave Chinner <dchinner@redhat.com>
Tue, 9 May 2023 09:30:33 +0000 (11:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 May 2023 12:44:34 +0000 (14:44 +0200)
commit91cceb740f1547246f10ef97f79190afa949abca
tree646f3ecc0c94c6db2abddf4832a52ad6dd1aadfb
parent50f6a20b8b826c3e7adfdcf3f209007d418e2341
xfs: convert xfs_alloc_vextent_iterate_ags() to use perag walker

Source kernel commit: 3432ef6111997f39d2f708dd508159dfaca72942

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_ag.h
libxfs/xfs_alloc.c