linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] jbd2: fix a bug of leaking jh->b_jcount
@ 2011-05-26  2:28 Ding Dinghua
  2011-05-26 15:16 ` Ted Ts'o
  0 siblings, 1 reply; 9+ messages in thread
From: Ding Dinghua @ 2011-05-26  2:28 UTC (permalink / raw)
  To: linux-ext4; +Cc: dingdinghua

jbd2_journal_get_create_access should drop jh->b_jcount in error
handling path

Signed-off-by: Ding Dinghua <dingdinghua@nrchpc.ac.cn>
---
 fs/jbd2/transaction.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 05fa77a..d66672a 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -921,8 +921,8 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
 	 */
 	JBUFFER_TRACE(jh, "cancelling revoke");
 	jbd2_journal_cancel_revoke(handle, jh);
-	jbd2_journal_put_journal_head(jh);
 out:
+	jbd2_journal_put_journal_head(jh);
 	return err;
 }
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 1/2] jbd2: fix a bug of leaking jh->b_jcount
@ 2011-05-26  2:02 dingdinghua
  2011-05-26  2:10 ` 丁定华
  0 siblings, 1 reply; 9+ messages in thread
From: dingdinghua @ 2011-05-26  2:02 UTC (permalink / raw)
  To: linux-ext4; +Cc: dingdinghua

From: Ding Dinghua <dingdinghua@nrchpc.ac.cn>

jbd2_journal_get_create_access should drop jh->b_jount in error
handling path
---
 fs/jbd2/transaction.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 05fa77a..d66672a 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -921,8 +921,8 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
 	 */
 	JBUFFER_TRACE(jh, "cancelling revoke");
 	jbd2_journal_cancel_revoke(handle, jh);
-	jbd2_journal_put_journal_head(jh);
 out:
+	jbd2_journal_put_journal_head(jh);
 	return err;
 }
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 1/2] Jbd2: fix a bug of leaking jh->b_jcount
@ 2011-05-25 10:19 y
  0 siblings, 0 replies; 9+ messages in thread
From: y @ 2011-05-25 10:19 UTC (permalink / raw)
  To: linux-ext4; +Cc: Ding Dinghua

From: Ding Dinghua <dingdinghua@nrchpc.ac.cn>

drop jh->b_jcount in error path
---
 fs/jbd2/transaction.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 05fa77a..d66672a 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -921,8 +921,8 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
 	 */
 	JBUFFER_TRACE(jh, "cancelling revoke");
 	jbd2_journal_cancel_revoke(handle, jh);
-	jbd2_journal_put_journal_head(jh);
 out:
+	jbd2_journal_put_journal_head(jh);
 	return err;
 }
 
-- 
1.7.4.1


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

end of thread, other threads:[~2011-05-26 15:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <-1724257416234743088@unknownmsgid>
2011-05-25 10:49 ` [PATCH 1/2] Jbd2: fix a bug of leaking jh->b_jcount Yongqiang Yang
2011-05-25 12:02   ` Theodore Tso
2011-05-25 22:14   ` Ted Ts'o
2011-05-26 11:25     ` Ding Dinghua
2011-05-26  2:28 [PATCH 1/2] jbd2: " Ding Dinghua
2011-05-26 15:16 ` Ted Ts'o
  -- strict thread matches above, loose matches on Subject: below --
2011-05-26  2:02 dingdinghua
2011-05-26  2:10 ` 丁定华
2011-05-25 10:19 [PATCH 1/2] Jbd2: " y

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