patch-2.2.16 linux/mm/filemap.c

Next file: linux/mm/mmap.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/mm/filemap.c linux/mm/filemap.c
@@ -142,7 +142,8 @@
 	struct page * page;
 	int count;
 
-	count = limit >> priority;
+	/* Make sure we scan all pages twice at priority 0. */
+	count = (limit << 1) >> priority;
 
 	page = mem_map + clock;
 	do {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)