Re: [PATCH v3 23/35] mm/slub: Mark slab_free_freelist_hook() __always_inline

From: Kent Overstreet
Date: Mon Feb 12 2024 - 21:09:12 EST


On Mon, Feb 12, 2024 at 04:31:14PM -0800, Kees Cook wrote:
> On Mon, Feb 12, 2024 at 01:39:09PM -0800, Suren Baghdasaryan wrote:
> > From: Kent Overstreet <kent.overstreet@xxxxxxxxx>
> >
> > It seems we need to be more forceful with the compiler on this one.
>
> Sure, but why?

Wasn't getting inlined without it, and that's one we do want inlined -
it's only called in one place.