From: Kent Overstreet Date: Thu, 21 Mar 2024 16:36:25 +0000 (-0700) Subject: mm/slub: mark slab_free_freelist_hook() __always_inline X-Git-Tag: v6.10-rc1~105^2~396 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ea9cd8e61a1f8dd304a3c8531b20f27ed5446d5;p=thirdparty%2Flinux.git mm/slub: mark slab_free_freelist_hook() __always_inline It seems we need to be more forceful with the compiler on this one. This is done for performance reasons only. Link: https://lkml.kernel.org/r/20240321163705.3067592-4-surenb@google.com Signed-off-by: Kent Overstreet Signed-off-by: Suren Baghdasaryan Reviewed-by: Kees Cook Reviewed-by: Pasha Tatashin Reviewed-by: Vlastimil Babka Tested-by: Kees Cook Cc: Alexander Viro Cc: Alex Gaynor Cc: Alice Ryhl Cc: Andreas Hindborg Cc: Benno Lossin Cc: "Björn Roy Baron" Cc: Boqun Feng Cc: Christoph Lameter Cc: Dennis Zhou Cc: Gary Guo Cc: Miguel Ojeda Cc: Peter Zijlstra Cc: Tejun Heo Cc: Wedson Almeida Filho Signed-off-by: Andrew Morton --- diff --git a/mm/slub.c b/mm/slub.c index 1bb2a93cf7b6a..bc9f40889834d 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2106,9 +2106,9 @@ bool slab_free_hook(struct kmem_cache *s, void *x, bool init) return !kasan_slab_free(s, x, init); } -static inline bool slab_free_freelist_hook(struct kmem_cache *s, - void **head, void **tail, - int *cnt) +static __fastpath_inline +bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail, + int *cnt) { void *object;