]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/dcache.c
s390: fix Oops when unloading module netiucv
[linux-2.6-omap-h63xx.git] / fs / dcache.c
index d68631f18df122824a0d36a307c647f15931c7bd..d1bf5d8aeb5a98a3f1d6ea3289897617b802165e 100644 (file)
@@ -2052,12 +2052,8 @@ static void __init dcache_init(unsigned long mempages)
         * but it is probably not worth it because of the cache nature
         * of the dcache. 
         */
-       dentry_cache = kmem_cache_create("dentry_cache",
-                                        sizeof(struct dentry),
-                                        0,
-                                        (SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|
-                                        SLAB_MEM_SPREAD),
-                                        NULL, NULL);
+       dentry_cache = KMEM_CACHE(dentry,
+               SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|SLAB_MEM_SPREAD);
        
        set_shrinker(DEFAULT_SEEKS, shrink_dcache_memory);