]> Git Repo - linux.git/commit
ext4: Retry block allocation if we have free blocks left
authorAneesh Kumar K.V <[email protected]>
Tue, 9 Sep 2008 03:05:34 +0000 (23:05 -0400)
committerTheodore Ts'o <[email protected]>
Tue, 9 Sep 2008 03:05:34 +0000 (23:05 -0400)
commitdf22291ff0fde0d350cf15dac3e5cc33ac528875
tree723d781b430e7ab796b67eec4e956b6a2e47bf93
parent166348dd37a4baacfb6fe495954b56f56b116f0c
ext4: Retry block allocation if we have free blocks left

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 <[email protected]>
Signed-off-by: Mingming Cao <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
fs/ext4/inode.c
This page took 0.051591 seconds and 4 git commands to generate.