linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] Jbd: fix a bug of leaking jh->b_jcount
@ 2011-05-25 10:20 Ding Dinghua
  2011-05-25 11:37 ` Yongqiang Yang
  0 siblings, 1 reply; 6+ messages in thread
From: Ding Dinghua @ 2011-05-25 10:20 UTC (permalink / raw)
  To: linux-ext4; +Cc: Ding Dinghua

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH 2/2] jbd: fix a bug of leaking jh->b_jcount
@ 2011-05-26  2:29 Ding Dinghua
  2011-05-30 10:32 ` Jan Kara
  0 siblings, 1 reply; 6+ messages in thread
From: Ding Dinghua @ 2011-05-26  2:29 UTC (permalink / raw)
  To: linux-ext4; +Cc: dingdinghua

journal_get_create_access should drop jh->b_jcount in error handling path

Signed-off-by: Ding Dinghua <dingdinghua@nrchpc.ac.cn>
---
 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 f7ee81a..3b3b01f 100644
--- a/fs/jbd/transaction.c
+++ b/fs/jbd/transaction.c
@@ -844,8 +844,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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-30 10:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25 10:20 [PATCH 2/2] Jbd: fix a bug of leaking jh->b_jcount Ding Dinghua
2011-05-25 11:37 ` 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

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).