]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - fs/hfsplus/super.c
[PATCH] slab: remove SLAB_KERNEL
[mirror_ubuntu-focal-kernel.git] / fs / hfsplus / super.c
index d279d5924f2857338815f9637567bad248f5a45e..4a0c70c76c8aabf979c855f60dda1c74b34717c1 100644 (file)
@@ -440,7 +440,7 @@ static struct inode *hfsplus_alloc_inode(struct super_block *sb)
 {
        struct hfsplus_inode_info *i;
 
-       i = kmem_cache_alloc(hfsplus_inode_cachep, SLAB_KERNEL);
+       i = kmem_cache_alloc(hfsplus_inode_cachep, GFP_KERNEL);
        return i ? &i->vfs_inode : NULL;
 }
 
@@ -493,8 +493,7 @@ static int __init init_hfsplus_fs(void)
 static void __exit exit_hfsplus_fs(void)
 {
        unregister_filesystem(&hfsplus_fs_type);
-       if (kmem_cache_destroy(hfsplus_inode_cachep))
-               printk(KERN_ERR "hfsplus_inode_cache: not all structures were freed\n");
+       kmem_cache_destroy(hfsplus_inode_cachep);
 }
 
 module_init(init_hfsplus_fs)