From: Brian Foster Date: Thu, 24 Jul 2014 09:56:08 +0000 (+1000) Subject: xfs: squash prealloc while over quota free space as well X-Git-Tag: omap-for-v3.17/fixes-against-rc2~83^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f074051ff550f9f1f1a8ab4868277d049a7fd7aa;p=pandora-kernel.git xfs: squash prealloc while over quota free space as well From: Brian Foster Commit 4d559a3b introduced heavy prealloc. squashing to catch the case of requesting too large a prealloc on smaller filesystems, leading to repeated flush and retry cycles that occur on ENOSPC. Now that we issue eofblocks scans on EDQUOT/ENOSPC, squash the prealloc against the minimum available free space across all applicable quotas as well to avoid a similar problem of repeated eofblocks scans. Signed-off-by: Brian Foster Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed