]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68f78f47ad1163be12ff1e214153f6ae974ed883
tree14c57b4f6f8afddac0bd2415bfa050fba8d25980
parent0aa6aa4c4efd25eba7be76525643e69dee7a9808
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