ext4: Retry block reservation
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 9 Sep 2008 03:14:50 +0000 (23:14 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Sep 2008 03:14:50 +0000 (23:14 -0400)
commit030ba6bc67b4f2bc5cd174f57785a1745c929abe
tree14c57b4f6f8afddac0bd2415bfa050fba8d25980
parenta30d542a0035b886ffaafd0057ced0a2b28c3a4f
ext4: Retry block reservation

During block reservation if we don't have enough blocks left, retry
block reservation with smaller block counts.  This makes sure we try
fallocate and DIO with smaller request size and don't fail early.  The
delayed allocation reservation cannot try with smaller block count. So
retry block reservation to handle temporary disk full conditions.  Also
print free blocks details if we fail block allocation during writepages.

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