diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-05-30 22:49:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 10:21:18 -0700 |
commit | 6c6671bf3517688371200d8b7e0aaf81e8d82bcc (patch) | |
tree | 0294dde5c701a80503bf2303de2802b328651f85 | |
parent | a625298da6c693825126b7054d8ff4a95f2b5668 (diff) |
ext4: fix quota accounting in case of fallocate
commit 35121c9860316d7799cea0fbc359a9186e7c2747 upstream (as of v2.6.34-git13)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | fs/ext4/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 45e6961b961..fc06fcd0c5a 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -1149,7 +1149,8 @@ void ext4_da_update_reserve_space(struct inode *inode, */ if (allocated_meta_blocks) vfs_dq_claim_block(inode, allocated_meta_blocks); - vfs_dq_release_reservation_block(inode, mdb_free + used); + vfs_dq_release_reservation_block(inode, mdb_free + used - + allocated_meta_blocks); } /* |