• Dave Chinner's avatar
    xfs: rework xfs_alloc_vextent() · ecd788a9
    Dave Chinner authored
    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: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    ecd788a9
xfs_alloc.c 98.2 KB