linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 5/10] Allow ext3 pages to be written back by VM pressure
@ 2002-05-05 20:56 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2002-05-05 20:56 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: lkml



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)


-

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-05 20:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-05 20:56 [patch 5/10] Allow ext3 pages to be written back by VM pressure Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).