Patchwork [2/2] Jbd2: fix an assertion, jh->b_transaction should be

login
register
mail settings
Submitter dingdinghua
Date Jan. 25, 2010, 3:45 a.m.
Message ID <1264391104-10950-3-git-send-email-dingdinghua@nrchpc.ac.cn>
Download mbox | patch
Permalink /patch/43611/
State New
Headers show

Comments

dingdinghua - Jan. 25, 2010, 3:45 a.m.
---
 fs/jbd2/commit.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

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