]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ext4: Switch to non delalloc mode when we are low on free blocks count.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 9 Oct 2008 03:13:30 +0000 (23:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Oct 2008 03:13:30 +0000 (23:13 -0400)
commit79f0be8d2e6ebde27dfb3beff18eb689d5c4e36c
tree7ddadff1a3f0f4f6814104aed42f20c52a7f5f24
parent6bc6e63fcd7dac9e633ea29f1fddd9580ab28f3f
ext4: Switch to non delalloc mode when we are low on free blocks count.

The delayed allocation code allocates blocks during writepages(), which
can not handle block allocation failures.  To deal with this, we switch
away from delayed allocation mode when we are running low on free
blocks.  This also allows us to avoid needing to reserve a large number
of meta-data blocks in case all of the requested blocks are
discontiguous.

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>
fs/ext4/inode.c