]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/slub_def.h
slub: fix failure when we delete and create a slab cache
[mirror_ubuntu-bionic-kernel.git] / include / linux / slub_def.h
index 0adae162dc8f134201a7be92cab43796f97aef49..3d1c3ff5be4515eb8e10f32f7a843f53913b21b5 100644 (file)
@@ -151,8 +151,12 @@ struct kmem_cache {
 
 #ifdef CONFIG_SYSFS
 #define SLAB_SUPPORTS_SYSFS
+void sysfs_slab_unlink(struct kmem_cache *);
 void sysfs_slab_release(struct kmem_cache *);
 #else
+static inline void sysfs_slab_unlink(struct kmem_cache *s)
+{
+}
 static inline void sysfs_slab_release(struct kmem_cache *s)
 {
 }