1
0
Fork 0

ext4: fix quota accounting in case of fallocate

allocated_meta_data is already included in 'used' variable.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
hifive-unleashed-5.1
Dmitry Monakhov 2010-05-16 00:00:00 -04:00 committed by Theodore Ts'o
parent b684b2ee94
commit 35121c9860
1 changed files with 2 additions and 1 deletions

View File

@ -1126,7 +1126,8 @@ void ext4_da_update_reserve_space(struct inode *inode,
*/
if (allocated_meta_blocks)
dquot_claim_block(inode, allocated_meta_blocks);
dquot_release_reservation_block(inode, mdb_free + used);
dquot_release_reservation_block(inode, mdb_free + used -
allocated_meta_blocks);
}
/*