]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: rework xfs_alloc_vextent()
authorDave Chinner <dchinner@redhat.com>
Tue, 9 May 2023 09:29:51 +0000 (11:29 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 May 2023 08:42:03 +0000 (10:42 +0200)
commit0ac70e08c2e4d67da616ef1d30297e5cc675bfe9
tree15a763bb4140ebf97f6bbc3518d8759560aa3aa7
parent5cb4ffc839c4fbab117fd9a68de6f65bbdffb4a1
xfs: rework xfs_alloc_vextent()

Source kernel commit: ecd788a92460eef44c5444290757bfd0f38d91b4

It's a multiplexing mess that can be greatly simplified, and really
needs to be simplified to allow active per-ag references to
propagate from initial AG selection code the the bmapi code.

This splits the code out into separate a parameter checking
function, an iterator function, and allocation completion functions
and then implements the individual policies using these functions.

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_alloc.c