• Dave Chinner's avatar
    xfs: refactor the filestreams allocator pick functions · bd4f5d09
    Dave Chinner authored
    Now that the filestreams allocator is largely rewritten,
    restructure the main entry point and pick function to seperate out
    the different operations cleanly. The MRU lookup function should not
    handle the start AG selection on MRU lookup failure, and nor should
    the pick function handle building the association that is inserted
    into the MRU.
    
    This leaves the filestreams allocator fairly clean and easy to
    understand, returning to the caller with an active perag reference
    and a target block to allocate at.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    bd4f5d09
xfs_filestream.c 10.1 KB