lkml.org 
[lkml]   [2002]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 5/10] Allow ext3 pages to be written back by VM pressure


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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.021 / U:16.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site