All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Monakhov <dmonakhov@sw.ru>
To: linux-ext4 <linux-ext4@vger.kernel.org>
Cc: Alex Tomas <alex@clusterfs.com>, devel@openvz.org
Subject: [PATCH 1/3] ext4 block reservation fix3
Date: Fri, 22 Jun 2007 16:17:10 +0400	[thread overview]
Message-ID: <20070622121710.GB395@localhost.sw.ru> (raw)
In-Reply-To: <20070622121509.GA395@localhost.sw.ru>

If ext4_reserve_block has failed we have to drop quota.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
 fs/ext4/balloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index a9655f1..eacffd3 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -1467,7 +1467,7 @@ ext4_fsblk_t ext4_new_blocks(handle_t *handle, struct inode *inode,
 	if (!(EXT4_I(inode)->i_state & EXT4_STATE_BLOCKS_RESERVED)) {
 		*errp = ext4_reserve_blocks(sb, num);
 		if (*errp)
-			return 0;
+			goto out;
 		reserved = num;
 	}
 
-- 
1.5.2

  reply	other threads:[~2007-06-22 12:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22 12:15 [PATCH 0/3] ext4: Extent code cleanup Dmitry Monakhov
2007-06-22 12:17 ` Dmitry Monakhov [this message]
2007-06-25 11:35   ` [PATCH 1/3] ext4 block reservation fix3 Alex Tomas
2007-06-22 12:17 ` [PATCH 2/3] extent compilation fixes Dmitry Monakhov
2007-06-25 11:38   ` Alex Tomas
2007-06-22 12:18 ` [PATCH 3/3] ext4: extent macros cleanup Dmitry Monakhov
2007-06-25 11:06   ` Alex Tomas

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=20070622121710.GB395@localhost.sw.ru \
    --to=dmonakhov@sw.ru \
    --cc=alex@clusterfs.com \
    --cc=devel@openvz.org \
    --cc=linux-ext4@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.