diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-10-13 00:11:01 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-10-23 02:04:36 +0300 |
commit | f3c799c22c661e181c71a0d9914fc923023f65fb (patch) | |
tree | 00ba9a69272b5e664919188d1f2e1f8b208b5965 /fs/xfs/xfs_rmap_item.c | |
parent | 9e253954acf53227f33d307f5ac5ff94c1ca5880 (diff) | |
download | linux-f3c799c22c661e181c71a0d9914fc923023f65fb.tar.xz |
xfs: create slab caches for frequently-used deferred items
Create slab caches for the high-level structures that coordinate
deferred intent items, since they're used fairly heavily.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_rmap_item.c')
-rw-r--r-- | fs/xfs/xfs_rmap_item.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_rmap_item.c b/fs/xfs/xfs_rmap_item.c index b5cdeb10927e..c3966b4c58ef 100644 --- a/fs/xfs/xfs_rmap_item.c +++ b/fs/xfs/xfs_rmap_item.c @@ -427,7 +427,7 @@ xfs_rmap_update_finish_item( rmap->ri_bmap.br_startoff, rmap->ri_bmap.br_startblock, rmap->ri_bmap.br_blockcount, rmap->ri_bmap.br_state, state); - kmem_free(rmap); + kmem_cache_free(xfs_rmap_intent_cache, rmap); return error; } @@ -447,7 +447,7 @@ xfs_rmap_update_cancel_item( struct xfs_rmap_intent *rmap; rmap = container_of(item, struct xfs_rmap_intent, ri_list); - kmem_free(rmap); + kmem_cache_free(xfs_rmap_intent_cache, rmap); } const struct xfs_defer_op_type xfs_rmap_update_defer_type = { |