xfs: move allocation accounting to xfs_alloc_vextent_set_fsbno()
authorDave Chinner <dchinner@redhat.com>
Sun, 12 Feb 2023 22:14:54 +0000 (09:14 +1100)
committerDave Chinner <dchinner@redhat.com>
Sun, 12 Feb 2023 22:14:54 +0000 (09:14 +1100)
commite4d174260779ff0e2dc5de951c2e235721b02b05
treeaefcb7dd9da398fb4a809b4da13a41c0abe5a54f
parent74b9aa63193b288191d6f01b61c819cef2807138
xfs: move allocation accounting to xfs_alloc_vextent_set_fsbno()

Move it from xfs_alloc_ag_vextent() so we can get rid of that layer.
Rename xfs_alloc_vextent_set_fsbno() to xfs_alloc_vextent_finish()
to indicate that it's function is finishing off the allocation that
we've run now that it contains much more functionality.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_alloc.c