]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: introduce xfs_alloc_vextent_exact_bno()
authorDave Chinner <dchinner@redhat.com>
Tue, 9 May 2023 09:30:26 +0000 (11:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 May 2023 12:30:42 +0000 (14:30 +0200)
commitc4e10f2b0807d62ae50f48405b7e98104f1a6ee6
treef4f6676c176cd93f9b21041b421c8847ea8376b4
parent156536950159c460d8d1bc19f3cde01c4fccadcb
xfs: introduce xfs_alloc_vextent_exact_bno()

Source kernel commit: 5f36b2ce79f254dd00cdc88374271df7ce843d56

Two of the callers to xfs_alloc_vextent_this_ag() actually want
exact block number allocation, not anywhere-in-ag allocation. Split
this out from _this_ag() as a first class citizen so no external
extent allocation code needs to care about args->type anymore.

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.c
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_bmap.c
libxfs/xfs_ialloc.c