From: Andrew Morton <[email-masked]>

fs/jbd/transaction.c: In function `jbd_unexpected_dirty_buffer':
fs/jbd/transaction.c:493: warning: unused variable `bh'

Cc: Jan Kara <[email-masked]>
Signed-off-by: Andrew Morton <[email-masked]>
---

 fs/jbd/transaction.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff -puN fs/jbd/transaction.c~fix-race-in-do_get_write_access-warning-fix fs/jbd/transaction.c
--- devel/fs/jbd/transaction.c~fix-race-in-do_get_write_access-warning-fix	2005-07-11 19:52:23.000000000 -0700
+++ devel-akpm/fs/jbd/transaction.c	2005-07-11 19:52:23.000000000 -0700
@@ -490,7 +490,6 @@ void journal_unlock_updates (journal_t *
  */
 static void jbd_unexpected_dirty_buffer(struct journal_head *jh)
 {
-	struct buffer_head *bh = jh2bh(jh);
 	int jlist;
 
 	/* If this buffer is one which might reasonably be dirty
@@ -502,8 +501,10 @@ static void jbd_unexpected_dirty_buffer(
 
 	if (jlist == BJ_Metadata || jlist == BJ_Reserved ||
 	    jlist == BJ_Shadow || jlist == BJ_Forget) {
-		if (test_clear_buffer_dirty(jh2bh(jh)))
-			set_bit(BH_JBDDirty, &jh2bh(jh)->b_state);
+		struct buffer_head *bh = jh2bh(jh);
+
+		if (test_clear_buffer_dirty(bh))
+			set_buffer_jbddirty(bh);
 	}
 }
 
_