patch-2.1.38 linux/mm/mmap.c

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

diff -u --recursive --new-file v2.1.37/linux/mm/mmap.c linux/mm/mmap.c
@@ -659,14 +659,14 @@
 {
 	vm_area_cachep = kmem_cache_create("vm_area_struct",
 					   sizeof(struct vm_area_struct),
-					   sizeof(long)*8, SLAB_HWCACHE_ALIGN,
+					   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),
-				      sizeof(long) * 4, SLAB_HWCACHE_ALIGN,
+				      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, slshen@lbl.gov