diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-09 02:54:55 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-09 02:54:55 +0000 |
commit | 493c987f7a352ca64fdb4dc03a21e24cbaf46f55 (patch) | |
tree | 184cddc0925e082c0500afd042f92e9f340fe890 /fs/namei.c | |
parent | 2d25612a92c62b5708d6d43f38d28c6141173328 (diff) |
Merge with Linux 2.4.0-pre3-test6.
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c index cba4fb775..3ac2602dc 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -14,6 +14,7 @@ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ +#include <linux/init.h> #include <linux/mm.h> #include <linux/proc_fs.h> #include <linux/smp_lock.h> @@ -1951,3 +1952,20 @@ struct inode_operations page_symlink_inode_operations = { readlink: page_readlink, follow_link: page_follow_link, }; + +/* SLAB cache for name blocks */ +kmem_cache_t *names_cachep; + +static int __init namecache_init(void) +{ + names_cachep = kmem_cache_create("names_cache", + PAGE_SIZE, + 0, + SLAB_HWCACHE_ALIGN, + NULL, NULL); + if (!names_cachep) + panic("Cannot create names cache"); + return 0; +} + +module_init(namecache_init) |