diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-10-20 09:39:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 01:46:17 (GMT) |
commit | bbc63f56fb159deb3203327848968311366b83df (patch) | |
tree | a02de41fde83c1558b0a5932a5f1e082aeae1711 | |
parent | b4fb17e7504316d01c1fd1fe3e5f0f4d9640d227 (diff) | |
download | linux-bbc63f56fb159deb3203327848968311366b83df.tar.xz |
staging: lustre: replace OBD_SLAB_ALLOC_PTR with kmem_cache_alloc
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>
-rw-r--r-- | drivers/staging/lustre/lustre/osc/osc_quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/osc/osc_quota.c b/drivers/staging/lustre/lustre/osc/osc_quota.c index 3b32928..98b9bcd 100644 --- a/drivers/staging/lustre/lustre/osc/osc_quota.c +++ b/drivers/staging/lustre/lustre/osc/osc_quota.c @@ -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; |