patch-2.4.0-test7 linux/mm/mmap.c
Next file: linux/mm/slab.c
Previous file: linux/mm/highmem.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Fri Aug 11 14:57:43 2000
- Orig file:
v2.4.0-test6/linux/mm/mmap.c
- Orig date:
Thu Jul 27 17:38:02 2000
diff -u --recursive --new-file v2.4.0-test6/linux/mm/mmap.c linux/mm/mmap.c
@@ -36,9 +36,6 @@
__S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
};
-/* SLAB cache for vm_area_struct's. */
-kmem_cache_t *vm_area_cachep;
-
int sysctl_overcommit_memory;
/* Check that a process has enough memory to allocate a
@@ -993,21 +990,4 @@
kmem_cache_free(vm_area_cachep, mpnt);
mpnt = prev;
}
-}
-
-void __init vma_init(void)
-{
- vm_area_cachep = kmem_cache_create("vm_area_struct",
- sizeof(struct vm_area_struct),
- 0, SLAB_HWCACHE_ALIGN,
- NULL, NULL);
- if(!vm_area_cachep)
- panic("vma_init: Cannot alloc vm_area_struct cache.");
-
- mm_cachep = kmem_cache_create("mm_struct",
- sizeof(struct mm_struct),
- 0, SLAB_HWCACHE_ALIGN,
- NULL, NULL);
- if(!mm_cachep)
- panic("vma_init: Cannot alloc mm_struct cache.");
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)