diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-10-20 12:39:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-24 18:46:17 -0700 |
commit | 50d3036294e9d4c5763e5fbc6557e5b07c2bdac0 (patch) | |
tree | cb8a50db1f2369dfa54fbf0cb37d4e02fb7f39a1 /drivers/staging/lustre/lustre/osc/osc_object.c | |
parent | staging: lustre: replace OBD_SLAB_ALLOC_GFP with kmem_cache_alloc (diff) | |
download | linux-dev-50d3036294e9d4c5763e5fbc6557e5b07c2bdac0.tar.xz linux-dev-50d3036294e9d4c5763e5fbc6557e5b07c2bdac0.zip |
staging: lustre: replace OBD_SLAB_FREE_PTR with kmem_cache_free
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>
Diffstat (limited to 'drivers/staging/lustre/lustre/osc/osc_object.c')
-rw-r--r-- | drivers/staging/lustre/lustre/osc/osc_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/osc/osc_object.c b/drivers/staging/lustre/lustre/osc/osc_object.c index 5ed88ae74143..ba57f8df5c7f 100644 --- a/drivers/staging/lustre/lustre/osc/osc_object.c +++ b/drivers/staging/lustre/lustre/osc/osc_object.c @@ -122,7 +122,7 @@ static void osc_object_free(const struct lu_env *env, struct lu_object *obj) LASSERT(atomic_read(&osc->oo_nr_writes) == 0); lu_object_fini(obj); - OBD_SLAB_FREE_PTR(osc, osc_object_kmem); + kmem_cache_free(osc_object_kmem, osc); } int osc_lvb_print(const struct lu_env *env, void *cookie, |