diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-05-16 06:00:00 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-05-16 06:00:00 +0200 |
commit | 35121c9860316d7799cea0fbc359a9186e7c2747 (patch) | |
tree | 6deb327895e42708a491a3b5d7a66b95cfb18003 | |
parent | ext4: allow defrag (EXT4_IOC_MOVE_EXT) in 32bit compat mode (diff) | |
download | linux-35121c9860316d7799cea0fbc359a9186e7c2747.tar.xz linux-35121c9860316d7799cea0fbc359a9186e7c2747.zip |
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>
-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 81d605412844..55bfcd94d1ab 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -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); } /* |