On Wed, 2022-05-18 at 11:55 -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > 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 <djwong@xxxxxxxxxx> Looks fine: Reviewed-by: Allison Henderson <allison.henderson@xxxxxxxxxx> > --- > fs/xfs/xfs_attr_item.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > > diff --git a/fs/xfs/xfs_attr_item.c b/fs/xfs/xfs_attr_item.c > index 7d4469e8a4fc..9ef2c2455921 100644 > --- a/fs/xfs/xfs_attr_item.c > +++ b/fs/xfs/xfs_attr_item.c > @@ -290,7 +290,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 >