diff options
author | Darrick J. Wong <[email protected]> | 2022-05-20 14:42:49 +1000 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2022-05-20 14:42:49 +1000 |
commit | 2fe3ffcf5592f24a9f9131a91727673d19f2b2d9 (patch) | |
tree | 1efab77c422a94cc38c26667eada202910a89501 | |
parent | 25b1e9dc32299b98257835910f8e532d805b824f (diff) |
xfs: free xfs_attrd_log_items correctly
Technically speaking, objects allocated out of a specific slab cache are
supposed to be freed to that slab cache. The popular slab backends will
take care of this for us, but SLOB famously doesn't. Fix this, even if
slob + xfs are not that common of a combination.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Allison Henderson <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
-rw-r--r-- | fs/xfs/xfs_attr_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_attr_item.c b/fs/xfs/xfs_attr_item.c index 4976b1ddc09f..4f1ee8b91a17 100644 --- a/fs/xfs/xfs_attr_item.c +++ b/fs/xfs/xfs_attr_item.c @@ -233,7 +233,7 @@ STATIC void xfs_attrd_item_free(struct xfs_attrd_log_item *attrdp) { kmem_free(attrdp->attrd_item.li_lv_shadow); - kmem_free(attrdp); + kmem_cache_free(xfs_attrd_cache, attrdp); } STATIC void |