diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2008-09-08 23:05:34 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-09-08 23:05:34 -0400 |
commit | df22291ff0fde0d350cf15dac3e5cc33ac528875 (patch) | |
tree | 723d781b430e7ab796b67eec4e956b6a2e47bf93 /mm/truncate.c | |
parent | 166348dd37a4baacfb6fe495954b56f56b116f0c (diff) |
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 <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions