patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / fs / jbd / commit.c
index 1c029b2..c1eb3c5 100644 (file)
@@ -412,7 +412,8 @@ write_out_data:
                        tagp = &bh->b_data[sizeof(journal_header_t)];
                        space_left = bh->b_size - sizeof(journal_header_t);
                        first_tag = 1;
-                       set_bit(BH_JWrite, &bh->b_state);
+                       set_buffer_jwrite(bh);
+                       set_buffer_dirty(bh);
                        wbuf[bufs++] = bh;
 
                        /* Record it so that we can wait for IO
@@ -638,7 +639,8 @@ wait_for_iobuf:
        JBUFFER_TRACE(descriptor, "write commit block");
        {
                struct buffer_head *bh = jh2bh(descriptor);
-               set_buffer_uptodate(bh);
+
+               set_buffer_dirty(bh);
                sync_dirty_buffer(bh);
                if (unlikely(!buffer_uptodate(bh)))
                        err = -EIO;