Commit 2fe3ffcf authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Dave Chinner

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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarAllison Henderson <allison.henderson@oracle.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 25b1e9dc
...@@ -233,7 +233,7 @@ STATIC void ...@@ -233,7 +233,7 @@ STATIC void
xfs_attrd_item_free(struct xfs_attrd_log_item *attrdp) xfs_attrd_item_free(struct xfs_attrd_log_item *attrdp)
{ {
kmem_free(attrdp->attrd_item.li_lv_shadow); kmem_free(attrdp->attrd_item.li_lv_shadow);
kmem_free(attrdp); kmem_cache_free(xfs_attrd_cache, attrdp);
} }
STATIC void STATIC void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment