[patch 5/10] Allow ext3 pages to be written back by VM pressure

Andrew Morton (akpm@zip.com.au)
Sun, 05 May 2002 13:56:06 -0700


When ext3 refiles journalled buffers for writeback, it is better to set the
page dirty as well as the buffer. So the page will be written out by
VM pressure rather than by kjournald alone.

=====================================

--- 2.5.13/fs/jbd/transaction.c~ext3-mark_buffer_dirty Sun May 5 13:32:00 2002
+++ 2.5.13-akpm/fs/jbd/transaction.c Sun May 5 13:32:35 2002
@@ -1548,7 +1548,7 @@ void __journal_unfile_buffer(struct jour
__blist_del_buffer(list, jh);
jh->b_jlist = BJ_None;
if (test_and_clear_bit(BH_JBDDirty, &jh2bh(jh)->b_state))
- set_buffer_dirty(jh2bh(jh));
+ mark_buffer_dirty(jh2bh(jh)); /* Expose it to the VM */
}

void journal_unfile_buffer(struct journal_head *jh)

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/