• Lachlan McIlroy's avatar
    [XFS] use minleft when allocating in xfs_bmbt_split() · 4ddd8bb1
    Lachlan McIlroy authored
    The bmap btree split code relies on a previous data extent allocation
    (from xfs_bmap_btalloc()) to find an AG that has sufficient space to
    perform a full btree split, when inserting the extent. When converting
    unwritten extents we don't allocate a data extent so a btree split will be
    the first allocation. In this case we need to set minleft so the allocator
    will pick an AG that has space to complete the split(s).
    SGI-PV: 983338
    SGI-Modid: xfs-linux-melb:xfs-kern:31357a
    Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
    Signed-off-by: default avatarDavid Chinner <dgc@sgi.com>
xfs_iomap.c 24.8 KB