linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2]fix an assertion in jbd/jbd2
@ 2010-01-25  3:45 dingdinghua
  2010-01-25  3:45 ` [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be dingdinghua
  0 siblings, 1 reply; 6+ messages in thread
From: dingdinghua @ 2010-01-25  3:45 UTC (permalink / raw)
  To: linux-ext4; +Cc: dingdinghua

the patch set is build on linus-git tree.
Two small fixs in journal_commit_transaction, jbd2_journal_commit_transaction

dingdinghua (2):
  Jbd: fix an assertion, jh->b_transaction should be
  Jbd2: fix an assertion, jh->b_transaction should be

 fs/jbd/commit.c  |    3 +--
 fs/jbd2/commit.c |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)


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

* [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be
  2010-01-25  3:45 [PATCH 0/2]fix an assertion in jbd/jbd2 dingdinghua
@ 2010-01-25  3:45 ` dingdinghua
  2010-01-25  3:45   ` [PATCH 2/2] Jbd2: " dingdinghua
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: dingdinghua @ 2010-01-25  3:45 UTC (permalink / raw)
  To: linux-ext4; +Cc: dingdinghua

---
 fs/jbd/commit.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c
index 4bd8825..ddd9efa 100644
--- a/fs/jbd/commit.c
+++ b/fs/jbd/commit.c
@@ -821,8 +821,7 @@ restart_loop:
 		spin_unlock(&journal->j_list_lock);
 		bh = jh2bh(jh);
 		jbd_lock_bh_state(bh);
-		J_ASSERT_JH(jh,	jh->b_transaction == commit_transaction ||
-			jh->b_transaction == journal->j_running_transaction);
+		J_ASSERT_JH(jh,	jh->b_transaction == commit_transaction);
 
 		/*
 		 * If there is undo-protected committed data against
-- 
1.5.5.6


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

* [PATCH 2/2] Jbd2: fix an assertion, jh->b_transaction should be
  2010-01-25  3:45 ` [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be dingdinghua
@ 2010-01-25  3:45   ` dingdinghua
  2010-02-24 17:12   ` [PATCH 1/2] Jbd: " tytso
  2010-02-24 17:13   ` tytso
  2 siblings, 0 replies; 6+ messages in thread
From: dingdinghua @ 2010-01-25  3:45 UTC (permalink / raw)
  To: linux-ext4; +Cc: dingdinghua

---
 fs/jbd2/commit.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 1bc74b6..28ad981 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -883,8 +883,7 @@ restart_loop:
 		spin_unlock(&journal->j_list_lock);
 		bh = jh2bh(jh);
 		jbd_lock_bh_state(bh);
-		J_ASSERT_JH(jh,	jh->b_transaction == commit_transaction ||
-			jh->b_transaction == journal->j_running_transaction);
+		J_ASSERT_JH(jh,	jh->b_transaction == commit_transaction);
 
 		/*
 		 * If there is undo-protected committed data against
-- 
1.5.5.6


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

* Re: [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be
  2010-01-25  3:45 ` [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be dingdinghua
  2010-01-25  3:45   ` [PATCH 2/2] Jbd2: " dingdinghua
@ 2010-02-24 17:12   ` tytso
  2010-02-25  1:11     ` 丁定华
  2010-02-24 17:13   ` tytso
  2 siblings, 1 reply; 6+ messages in thread
From: tytso @ 2010-02-24 17:12 UTC (permalink / raw)
  To: dingdinghua; +Cc: linux-ext4

On Mon, Jan 25, 2010 at 11:45:03AM +0800, dingdinghua wrote:
> ---
>  fs/jbd/commit.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 

I've changed the commit message to read:

jbd2: clean up an assertion in jbd2_journal_commit_transaction()

commit_transaction has the same value as journal->j_running_transaction,
so we can simplify the assert statement.

This is a pretty simple patch, but I wanted to give you credit, so I
assumed that you had meant to add a Signed-off-by: line but just
forgot.  Please let me know if this was not your intention!

	 	       	       	    - Ted

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

* Re: [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be
  2010-01-25  3:45 ` [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be dingdinghua
  2010-01-25  3:45   ` [PATCH 2/2] Jbd2: " dingdinghua
  2010-02-24 17:12   ` [PATCH 1/2] Jbd: " tytso
@ 2010-02-24 17:13   ` tytso
  2 siblings, 0 replies; 6+ messages in thread
From: tytso @ 2010-02-24 17:13 UTC (permalink / raw)
  To: dingdinghua; +Cc: linux-ext4

On Mon, Jan 25, 2010 at 11:45:03AM +0800, dingdinghua wrote:
> ---
>  fs/jbd/commit.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Acked-by: "Theodore Ts'o" <tytso@mit.edu>

(Sorry, I replied to the wrong mail message in my previous note; I've
put the jbd2 version of this patch in the ext4 patch queue, and I'm
acking this for Jan.)

					- Ted

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

* Re: [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be
  2010-02-24 17:12   ` [PATCH 1/2] Jbd: " tytso
@ 2010-02-25  1:11     ` 丁定华
  0 siblings, 0 replies; 6+ messages in thread
From: 丁定华 @ 2010-02-25  1:11 UTC (permalink / raw)
  To: tytso; +Cc: linux-ext4

Thanks a lot. I forgot the comment and the sign-off issue.

2010/2/25  <tytso@mit.edu>:
> On Mon, Jan 25, 2010 at 11:45:03AM +0800, dingdinghua wrote:
>> ---
>>  fs/jbd/commit.c |    3 +--
>>  1 files changed, 1 insertions(+), 2 deletions(-)
>>
>
> I've changed the commit message to read:
>
> jbd2: clean up an assertion in jbd2_journal_commit_transaction()
>
> commit_transaction has the same value as journal->j_running_transaction,
> so we can simplify the assert statement.
>
> This is a pretty simple patch, but I wanted to give you credit, so I
> assumed that you had meant to add a Signed-off-by: line but just
> forgot.  Please let me know if this was not your intention!
>
>                                    - Ted
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
丁定华
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2010-02-25  1:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25  3:45 [PATCH 0/2]fix an assertion in jbd/jbd2 dingdinghua
2010-01-25  3:45 ` [PATCH 1/2] Jbd: fix an assertion, jh->b_transaction should be dingdinghua
2010-01-25  3:45   ` [PATCH 2/2] Jbd2: " dingdinghua
2010-02-24 17:12   ` [PATCH 1/2] Jbd: " tytso
2010-02-25  1:11     ` 丁定华
2010-02-24 17:13   ` tytso

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