From: Lachlan McIlroy Date: Fri, 27 Jun 2008 03:32:53 +0000 (+1000) Subject: [XFS] use minleft when allocating in xfs_bmbt_split() X-Git-Tag: v2.6.27-rc2~91^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ddd8bb1d25f9cbb345e1f64a56c0f641a787ede;p=pandora-kernel.git [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 Signed-off-by: David Chinner --- Reading git-diff-tree failed