patch-1.3.38 linux/mm/swap.c

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

diff -u --recursive --new-file v1.3.37/linux/mm/swap.c linux/mm/swap.c
@@ -837,6 +837,8 @@
 	unsigned long flags;
 	int reserved_pages;
 
+	if (order >= NR_MEM_LISTS)
+		return 0;
 	if (intr_count && priority != GFP_ATOMIC) {
 		static int count = 0;
 		if (++count < 5) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this