lkml.org 
[lkml]   [2023]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH 26/40] mm/slub: Mark slab_free_freelist_hook() __always_inline
    From
    From: Kent Overstreet <kent.overstreet@linux.dev>

    It seems we need to be more forceful with the compiler on this one.

    Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
    Signed-off-by: Suren Baghdasaryan <surenb@google.com>
    ---
    mm/slub.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/mm/slub.c b/mm/slub.c
    index 8f57fd086f69..9dd57b3384a1 100644
    --- a/mm/slub.c
    +++ b/mm/slub.c
    @@ -1781,7 +1781,7 @@ static __always_inline bool slab_free_hook(struct kmem_cache *s,
    return kasan_slab_free(s, x, init);
    }

    -static inline bool slab_free_freelist_hook(struct kmem_cache *s,
    +static __always_inline bool slab_free_freelist_hook(struct kmem_cache *s,
    void **head, void **tail,
    int *cnt)
    {
    --
    2.40.1.495.gc816e09b53d-goog
    \
     
     \ /
      Last update: 2023-05-01 19:00    [W:7.358 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site