From: Dmitry Monakhov <dmonakhov@openvz.org>
To: linux-ext4@vger.kernel.org
Cc: tytso@mit.edu, aneesh.kumar@linux.vnet.ibm.com
Subject: Re: [PATCH] ext4: fix quota accounting in case of fallocate
Date: Tue, 30 Mar 2010 18:27:49 +0400 [thread overview]
Message-ID: <87pr2ldguy.fsf@openvz.org> (raw)
In-Reply-To: <1269959076-9591-1-git-send-email-dmonakhov@openvz.org> (Dmitry Monakhov's message of "Tue, 30 Mar 2010 18:24:35 +0400")
Dmitry Monakhov <dmonakhov@openvz.org> writes:
> allocated_meta_data is already included in 'used' variable.
Since 2.6.33 is also affected the patch have to be pushed to
stable IMHO.
>
> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
> ---
> 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 bec222c..bf989fb 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -1110,7 +1110,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);
> }
>
> /*
next prev parent reply other threads:[~2010-03-30 14:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 14:24 [PATCH] ext4: fix quota accounting in case of fallocate Dmitry Monakhov
2010-03-30 14:27 ` Dmitry Monakhov [this message]
2010-03-30 18:08 ` Aneesh Kumar K. V
2010-03-31 4:51 ` dmonakhov
2010-04-03 15:56 ` tytso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pr2ldguy.fsf@openvz.org \
--to=dmonakhov@openvz.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).