linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] zone_reclaim: do not unmap file backed pages
@ 2006-01-24 20:17 Christoph Lameter
  0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2006-01-24 20:17 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm

zone_reclaim should leave that to the real swapper. We are only 
interested in evicting unmapped pages.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.16-rc1-mm2/mm/vmscan.c
===================================================================
--- linux-2.6.16-rc1-mm2.orig/mm/vmscan.c	2006-01-23 10:02:23.000000000 -0800
+++ linux-2.6.16-rc1-mm2/mm/vmscan.c	2006-01-23 10:02:23.000000000 -0800
@@ -476,6 +476,12 @@ static int shrink_list(struct list_head 
 		 * processes. Try to unmap it here.
 		 */
 		if (page_mapped(page) && mapping) {
+			/*
+			 * No unmapping if we do not swap
+			 */
+			if (!sc->may_swap)
+				goto keep_locked;
+
 			switch (try_to_unmap(page, 0)) {
 			case SWAP_FAIL:
 				goto activate_locked;

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

only message in thread, other threads:[~2006-01-24 22:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-24 20:17 [PATCH] zone_reclaim: do not unmap file backed pages Christoph Lameter

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