From: Ding Dinghua <dingdinghua@nrchpc.ac.cn>
To: linux-ext4@vger.kernel.org
Cc: Ding Dinghua <dingdinghua@nrchpc.ac.cn>
Subject: [PATCH 2/2] Jbd: fix a bug of leaking jh->b_jcount
Date: Wed, 25 May 2011 18:20:41 +0800 [thread overview]
Message-ID: <1306318841-8363-1-git-send-email-dingdinghua@nrchpc.ac.cn> (raw)
drop jh->b_jcount in error path
---
fs/jbd/transaction.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c
index 60d2319..3f7bf84 100644
--- a/fs/jbd/transaction.c
+++ b/fs/jbd/transaction.c
@@ -843,8 +843,8 @@ int journal_get_create_access(handle_t *handle, struct buffer_head *bh)
*/
JBUFFER_TRACE(jh, "cancelling revoke");
journal_cancel_revoke(handle, jh);
- journal_put_journal_head(jh);
out:
+ journal_put_journal_head(jh);
return err;
}
--
1.7.4.1
next reply other threads:[~2011-05-25 11:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-25 10:20 Ding Dinghua [this message]
2011-05-25 11:37 ` [PATCH 2/2] Jbd: fix a bug of leaking jh->b_jcount Yongqiang Yang
2011-05-25 11:47 ` Yongqiang Yang
2011-05-25 13:48 ` Ted Ts'o
-- strict thread matches above, loose matches on Subject: below --
2011-05-26 2:29 [PATCH 2/2] jbd: " Ding Dinghua
2011-05-30 10:32 ` Jan Kara
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=1306318841-8363-1-git-send-email-dingdinghua@nrchpc.ac.cn \
--to=dingdinghua@nrchpc.ac.cn \
--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 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).