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>
This commit is contained in:
Родитель
b684b2ee94
Коммит
35121c9860
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче