]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: replace OBD_SLAB_ALLOC_GFP with kmem_cache_alloc
authorMike Rapoport <mike.rapoport@gmail.com>
Tue, 20 Oct 2015 09:39:50 +0000 (12:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:46:17 +0000 (18:46 -0700)
Use kmem_cache_free directly instead of wrapping macro.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/remote_perm.c

index 7b5ec4174ea63dc114919bef21c4e482160168d4..4257d74c212aaa8ebc92e3eace3298318ef248b6 100644 (file)
@@ -82,9 +82,7 @@ static struct hlist_head *alloc_rmtperm_hash(void)
        struct hlist_head *hash;
        int i;
 
-       OBD_SLAB_ALLOC_GFP(hash, ll_rmtperm_hash_cachep,
-                          REMOTE_PERM_HASHSIZE * sizeof(*hash),
-                          GFP_IOFS);
+       hash = kmem_cache_alloc(ll_rmtperm_hash_cachep, GFP_IOFS | __GFP_ZERO);
        if (!hash)
                return NULL;