Skip to content

Commit 9ea9cd8

Browse files
Kent Overstreetakpm00
authored andcommitted
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/[email protected] Signed-off-by: Kent Overstreet <[email protected]> Signed-off-by: Suren Baghdasaryan <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Pasha Tatashin <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Tested-by: Kees Cook <[email protected]> Cc: Alexander Viro <[email protected]> Cc: Alex Gaynor <[email protected]> Cc: Alice Ryhl <[email protected]> Cc: Andreas Hindborg <[email protected]> Cc: Benno Lossin <[email protected]> Cc: "Björn Roy Baron" <[email protected]> Cc: Boqun Feng <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Dennis Zhou <[email protected]> Cc: Gary Guo <[email protected]> Cc: Miguel Ojeda <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Wedson Almeida Filho <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 690da22 commit 9ea9cd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mm/slub.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,9 +2106,9 @@ bool slab_free_hook(struct kmem_cache *s, void *x, bool init)
21062106
return !kasan_slab_free(s, x, init);
21072107
}
21082108

2109-
static inline bool slab_free_freelist_hook(struct kmem_cache *s,
2110-
void **head, void **tail,
2111-
int *cnt)
2109+
static __fastpath_inline
2110+
bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail,
2111+
int *cnt)
21122112
{
21132113

21142114
void *object;

0 commit comments

Comments
 (0)