diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-10-20 12:39:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-24 18:46:17 -0700 |
commit | ccaabce1171b3194ded7c3961ed33ff09a5a0739 (patch) | |
tree | 920a57672b9354978a60bf08d3a946167b41241a /drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | |
parent | bbc63f56fb159deb3203327848968311366b83df (diff) | |
download | op-kernel-dev-ccaabce1171b3194ded7c3961ed33ff09a5a0739.zip op-kernel-dev-ccaabce1171b3194ded7c3961ed33ff09a5a0739.tar.gz |
staging: lustre: replace OBD_SLAB_ALLOC_PTR_GFP with kmem_cache_alloc
The OBD_SLAB_ALLOC_PTR_GFP 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>
Diffstat (limited to 'drivers/staging/lustre/lustre/ldlm/ldlm_resource.c')
-rw-r--r-- | drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c index e09f2cd..6077ffb 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c @@ -1031,7 +1031,7 @@ static struct ldlm_resource *ldlm_resource_new(void) struct ldlm_resource *res; int idx; - OBD_SLAB_ALLOC_PTR_GFP(res, ldlm_resource_slab, GFP_NOFS); + res = kmem_cache_alloc(ldlm_resource_slab, GFP_NOFS | __GFP_ZERO); if (res == NULL) return NULL; |