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/obdclass/genops.c | |
parent | bbc63f56fb159deb3203327848968311366b83df (diff) | |
download | talos-obmc-linux-ccaabce1171b3194ded7c3961ed33ff09a5a0739.tar.gz talos-obmc-linux-ccaabce1171b3194ded7c3961ed33ff09a5a0739.zip |
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/obdclass/genops.c')
-rw-r--r-- | drivers/staging/lustre/lustre/obdclass/genops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/genops.c b/drivers/staging/lustre/lustre/obdclass/genops.c index ab0748b1765b..6fd58895703d 100644 --- a/drivers/staging/lustre/lustre/obdclass/genops.c +++ b/drivers/staging/lustre/lustre/obdclass/genops.c @@ -68,7 +68,7 @@ static struct obd_device *obd_device_alloc(void) { struct obd_device *obd; - OBD_SLAB_ALLOC_PTR_GFP(obd, obd_device_cachep, GFP_NOFS); + obd = kmem_cache_alloc(obd_device_cachep, GFP_NOFS | __GFP_ZERO); if (obd != NULL) obd->obd_magic = OBD_DEVICE_MAGIC; return obd; |