]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: release reserved quota when block reservation for delalloc retry
authorMingming Cao <cmm@us.ibm.com>
Mon, 28 Sep 2009 19:49:52 +0000 (15:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Sep 2009 19:49:52 +0000 (15:49 -0400)
commit5c7847a93d27374b80f4678b23af287e5ac31c87
treeb90ea9f8dc2542d029b15d94a0588b36937dbbab
parent6fb8a577bdd27f2a5fc2317618f3bbc36270f753
ext4: release reserved quota when block reservation for delalloc retry

ext4_da_reserve_space() can reserve quota blocks multiple times if
ext4_claim_free_blocks() fail and we retry the allocation. We should
release the quota reservation before restarting.

Bug found by Jan Kara.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c