Skip to content

Commit 2fe3ffc

Browse files
Darrick J. Wongdchinner
authored andcommitted
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]>
1 parent 25b1e9d commit 2fe3ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_attr_item.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ STATIC void
233233
xfs_attrd_item_free(struct xfs_attrd_log_item *attrdp)
234234
{
235235
kmem_free(attrdp->attrd_item.li_lv_shadow);
236-
kmem_free(attrdp);
236+
kmem_cache_free(xfs_attrd_cache, attrdp);
237237
}
238238

239239
STATIC void

0 commit comments

Comments
 (0)