]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: replace OBD_SLAB_ALLOC_PTR with kmem_cache_alloc
authorMike Rapoport <mike.rapoport@gmail.com>
Tue, 20 Oct 2015 09:39:48 +0000 (12:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:46:17 +0000 (18:46 -0700)
The OBD_SLAB_ALLOC_PTR macro expands to call to kmem_cache_alloc,
which may be used directly.

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

index 3b32928eb4fc53f3250dd7af9465d755f5f6668f..98b9bcda798106f7dc14761e7dad9773fb2132bc 100644 (file)
@@ -35,7 +35,7 @@ static inline struct osc_quota_info *osc_oqi_alloc(u32 id)
 {
        struct osc_quota_info *oqi;
 
-       OBD_SLAB_ALLOC_PTR(oqi, osc_quota_kmem);
+       oqi = kmem_cache_alloc(osc_quota_kmem, GFP_NOFS | __GFP_ZERO);
        if (oqi != NULL)
                oqi->oqi_id = id;