patch-2.4.0-test7 linux/fs/dcache.c
Next file: linux/fs/devfs/base.c
Previous file: linux/fs/cramfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Fri Aug 11 19:14:46 2000
- Orig file:
v2.4.0-test6/linux/fs/dcache.c
- Orig date:
Wed Aug 9 19:19:51 2000
diff -u --recursive --new-file v2.4.0-test6/linux/fs/dcache.c linux/fs/dcache.c
@@ -1189,7 +1189,9 @@
if (!dentry_cache)
panic("Cannot create dentry cache");
+#if PAGE_SHIFT < 13
mempages >>= (13 - PAGE_SHIFT);
+#endif
mempages *= sizeof(struct list_head);
for (order = 0; ((1UL << order) << PAGE_SHIFT) < mempages; order++)
;
@@ -1228,9 +1230,6 @@
/* SLAB cache for __getname() consumers */
kmem_cache_t *names_cachep;
-/* SLAB cache for files_struct structures */
-kmem_cache_t *files_cachep;
-
/* SLAB cache for file structures */
kmem_cache_t *filp_cachep;
@@ -1246,19 +1245,13 @@
sizeof(struct buffer_head), 0,
SLAB_HWCACHE_ALIGN, NULL, NULL);
if(!bh_cachep)
- panic("Cannot create buffer head SLAB cache\n");
+ panic("Cannot create buffer head SLAB cache");
names_cachep = kmem_cache_create("names_cache",
PAGE_SIZE, 0,
SLAB_HWCACHE_ALIGN, NULL, NULL);
if (!names_cachep)
panic("Cannot create names SLAB cache");
-
- files_cachep = kmem_cache_create("files_cache",
- sizeof(struct files_struct), 0,
- SLAB_HWCACHE_ALIGN, NULL, NULL);
- if (!files_cachep)
- panic("Cannot create files SLAB cache");
filp_cachep = kmem_cache_create("filp",
sizeof(struct file), 0,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)