diff options
author | Carlos Maiolino <cmaiolino@redhat.com> | 2019-11-14 21:43:04 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-18 17:40:44 +0100 |
commit | 377bcd5f3b7f46f50fdad1fed639c07f8c9f68cb (patch) | |
tree | 913115425fbd1d1f34b8caa15a3e1237a2e803ed /fs/xfs/xfs_refcount_item.c | |
parent | xfs: Remove kmem_zone_destroy() wrapper (diff) | |
download | linux-377bcd5f3b7f46f50fdad1fed639c07f8c9f68cb.tar.xz linux-377bcd5f3b7f46f50fdad1fed639c07f8c9f68cb.zip |
xfs: Remove kmem_zone_free() wrapper
We can remove it now, without needing to rework the KM_ flags.
Use kmem_cache_free() directly.
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_refcount_item.c')
-rw-r--r-- | fs/xfs/xfs_refcount_item.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_refcount_item.c b/fs/xfs/xfs_refcount_item.c index d5708d40ad87..8eeed73928cd 100644 --- a/fs/xfs/xfs_refcount_item.c +++ b/fs/xfs/xfs_refcount_item.c @@ -34,7 +34,7 @@ xfs_cui_item_free( if (cuip->cui_format.cui_nextents > XFS_CUI_MAX_FAST_EXTENTS) kmem_free(cuip); else - kmem_zone_free(xfs_cui_zone, cuip); + kmem_cache_free(xfs_cui_zone, cuip); } /* @@ -206,7 +206,7 @@ xfs_cud_item_release( struct xfs_cud_log_item *cudp = CUD_ITEM(lip); xfs_cui_release(cudp->cud_cuip); - kmem_zone_free(xfs_cud_zone, cudp); + kmem_cache_free(xfs_cud_zone, cudp); } static const struct xfs_item_ops xfs_cud_item_ops = { |