diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-04 07:40:19 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-04 07:40:19 +0000 |
commit | 33263fc5f9ac8e8cb2b22d06af3ce5ac1dd815e4 (patch) | |
tree | 2d1b86a40bef0958a68cf1a2eafbeb0667a70543 /mm/vmalloc.c | |
parent | 216f5f51aa02f8b113aa620ebc14a9631a217a00 (diff) |
Merge with Linux 2.3.32.
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index d7908df16..96cad2679 100644 --- a/mm/vmalloc.c +++ b/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 @@ int vmalloc_area_pages(unsigned long address, unsigned long size, pgprot_t prot) 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 @@ struct vm_struct * get_vm_area(unsigned long size) return NULL; } } + area->flags = flags; area->addr = (void *)addr; area->size = size + PAGE_SIZE; area->next = *p; @@ -208,7 +210,7 @@ void * vmalloc_prot(unsigned long size, pgprot_t prot) BUG(); return NULL; } - area = get_vm_area(size); + area = get_vm_area(size, VM_ALLOC); if (!area) { BUG(); return NULL; |