]> Git Repo - linux.git/blobdiff - fs/kernfs/mount.c
Merge tag 'platform-drivers-x86-v5.1-1' of git://git.infradead.org/linux-platform...
[linux.git] / fs / kernfs / mount.c
index d71c9405874a04d1d406a420317a0e4535400ac3..f3ac352699cfb58f201ab9b27beeb59838e62ab9 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "kernfs-internal.h"
 
-struct kmem_cache *kernfs_node_cache;
+struct kmem_cache *kernfs_node_cache, *kernfs_iattrs_cache;
 
 static int kernfs_sop_remount_fs(struct super_block *sb, int *flags, char *data)
 {
@@ -421,4 +421,9 @@ void __init kernfs_init(void)
                                              0,
                                              SLAB_PANIC | SLAB_TYPESAFE_BY_RCU,
                                              NULL);
+
+       /* Creates slab cache for kernfs inode attributes */
+       kernfs_iattrs_cache  = kmem_cache_create("kernfs_iattrs_cache",
+                                             sizeof(struct kernfs_iattrs),
+                                             0, SLAB_PANIC, NULL);
 }
This page took 0.030643 seconds and 4 git commands to generate.