]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: use xfs_alloc_vextent_start_bno() where appropriate
authorDave Chinner <dchinner@redhat.com>
Tue, 9 May 2023 09:30:24 +0000 (11:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 May 2023 12:07:32 +0000 (14:07 +0200)
commit1a5a98d5d16121ed01da27d177f91b6531669a99
treec662569fc2d84f9b0a8cdadf2429d3686f8833d0
parent5ba1f9152aeaffb36a707c9382bba3f22236f07a
xfs: use xfs_alloc_vextent_start_bno() where appropriate

Source kernel commit: 2a7f6d41d8b72412228ede538bdf0e81bf9738f4

Change obvious callers of single AG allocation to use
xfs_alloc_vextent_start_bno(). Callers no long need to specify
XFS_ALLOCTYPE_START_BNO, and so the type can be driven inward and
removed.

While doing this, also pass the allocation target fsb as a parameter
rather than encoding it in args->fsbno.

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