ext4: Retry block allocation if we have free blocks left
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 9 Sep 2008 03:05:34 +0000 (23:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Sep 2008 03:05:34 +0000 (23:05 -0400)
When we truncate files, the meta-data blocks released are not reused
untill we commit the truncate transaction.  That means delayed get_block
request will return ENOSPC even if we have free blocks left.  Force a
journal commit and retry block allocation if we get ENOSPC with free
blocks left.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found