[patch] new-vm improvement [Re: 2.2.0 Bug summary]

Andrea Arcangeli
1998-12-31T18:42:10Z

On Thu, 31 Dec 1998, Andrea Arcangeli wrote:

> Comments?
>
> Ah, the shrink_mmap limit was wrong since we account only not referenced
> pages.
>
> Patch against 2.2.0-pre1:

whoops in the last email I forget to change a bit the subject (adding
[patch]) and this printk:

Index: linux/mm/vmscan.c
diff -u linux/mm/vmscan.c:1.1.1.1.2.43 linux/mm/vmscan.c:1.1.1.1.2.45
--- linux/mm/vmscan.c:1.1.1.1.2.43 Thu Dec 31 17:56:27 1998
+++ linux/mm/vmscan.c Thu Dec 31 19:41:06 1998
@@ -449,11 +449,7 @@
case 0:
/* swap_out() failed to swapout */
if (shrink_mmap(priority, gfp_mask))
- {
- printk("swapout 0 shrink 1\n");
return 1;
- }
- printk("swapout 0 shrink 0\n");
return 0;
case 1:
/* this would be the best but should not happen right now */

Andrea Arcangeli