patch-2.3.29 linux/mm/vmalloc.c

Next file: linux/mm/vmscan.c
Previous file: linux/mm/slab.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/mm/vmalloc.c linux/mm/vmalloc.c
@@ -9,6 +9,7 @@
 #include <linux/vmalloc.h>
 
 #include <asm/uaccess.h>
+#include <asm/pgalloc.h>
 
 struct vm_struct * vmlist = NULL;
 
@@ -152,7 +153,7 @@
 	return 0;
 }
 
-struct vm_struct * get_vm_area(unsigned long size)
+struct vm_struct * get_vm_area(unsigned long size, unsigned long flags)
 {
 	unsigned long addr;
 	struct vm_struct **p, *tmp, *area;
@@ -170,6 +171,7 @@
 			return NULL;
 		}
 	}
+	area->flags = flags;
 	area->addr = (void *)addr;
 	area->size = size + PAGE_SIZE;
 	area->next = *p;
@@ -208,7 +210,7 @@
 		BUG();
 		return NULL;
 	}
-	area = get_vm_area(size);
+	area = get_vm_area(size, VM_ALLOC);
 	if (!area) {
 		BUG();
 		return NULL;

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