linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix page_launder() reactivation
@ 2001-08-22  0:18 Rik van Riel
  0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 2001-08-22  0:18 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-mm

Hi Alan,

here's a quick fix to make page_launder() not move
pages under ->writepage() back to the active list.

regards,

Rik
--
IA64: a worthy successor to i860.


--- linux-2.4.8-ac8/mm/vmscan.c.orig	Tue Aug 21 21:10:03 2001
+++ linux-2.4.8-ac8/mm/vmscan.c	Tue Aug 21 21:11:05 2001
@@ -529,7 +529,7 @@
 		/* Page is or was in use?  Move it to the active list. */
 		if (PageReferenced(page) || page->age > 0 ||
 				page_count(page) > (1 + !!page->buffers) ||
-				page_ramdisk(page)) {
+				page_ramdisk(page) && !PageLocked(page)) {
 			del_page_from_inactive_dirty_list(page);
 			add_page_to_active_list(page);
 			continue;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

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

only message in thread, other threads:[~2001-08-22  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-22  0:18 [PATCH] fix page_launder() reactivation Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox