• Dave Chinner's avatar
    xfs: use xfs_alloc_vextent_this_ag() where appropriate · 74c36a86
    Dave Chinner authored
    Change obvious callers of single AG allocation to use
    xfs_alloc_vextent_this_ag(). Drive the per-ag grabbing out to the
    callers, too, so that callers with active references don't need
    to do new lookups just for an allocation in a context that already
    has a perag reference.
    
    The only remaining caller that does single AG allocation through
    xfs_alloc_vextent() is xfs_bmap_btalloc() with
    XFS_ALLOCTYPE_NEAR_BNO. That is going to need more untangling before
    it can be converted cleanly.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    74c36a86
xfs_bmap_btree.c 17.5 KB