]> git.baikalelectronics.ru Git - kernel.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)
commiteeb5dc365f6c34b0d72867b28e2908164a96b978
tree7ddadff1a3f0f4f6814104aed42f20c52a7f5f24
parentedf9712fcb939b3a47a11c2494756aec13fcdcd9
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