patch-2.4.23 linux-2.4.23/mm/oom_kill.c

Next file: linux-2.4.23/mm/page_alloc.c
Previous file: linux-2.4.23/mm/mprotect.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/mm/oom_kill.c linux-2.4.23/mm/oom_kill.c
@@ -21,6 +21,8 @@
 #include <linux/swapctl.h>
 #include <linux/timex.h>
 
+#if 0		/* Nothing in this file is used */
+
 /* #define DEBUG */
 
 /**
@@ -151,7 +153,6 @@
 	 * exit() and clear out its resources quickly...
 	 */
 	p->counter = 5 * HZ;
-	p->flags |= PF_MEMALLOC | PF_MEMDIE;
 
 	/* This process has hardware access, be more careful. */
 	if (cap_t(p->cap_effective) & CAP_TO_MASK(CAP_SYS_RAWIO)) {
@@ -256,3 +257,5 @@
 	first = now;
 	count = 0;
 }
+
+#endif	/* Unused file */

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