]> err.no Git - linux-2.6/commit
[XFS] use minleft when allocating in xfs_bmbt_split()
authorLachlan McIlroy <lachlan@sgi.com>
Fri, 27 Jun 2008 03:32:53 +0000 (13:32 +1000)
committerNiv Sardi <xaiki@debian.org>
Mon, 28 Jul 2008 06:59:10 +0000 (16:59 +1000)
commit4ddd8bb1d25f9cbb345e1f64a56c0f641a787ede
tree297e8fa754cbd910450ff76a9058a2ac6cd07b39
parente182f57ac019b034b40d16f3c6d8e86826aecd56
[XFS] use minleft when allocating in xfs_bmbt_split()

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: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
fs/xfs/xfs_bmap_btree.c
fs/xfs/xfs_iomap.c