Re: [PATCH 7/9] mm, slub: introduce kmem_cache_debug_flags()

From: Vlastimil Babka
Date: Thu Jun 18 2020 - 04:37:12 EST


On 6/10/20 6:31 PM, Vlastimil Babka wrote:
> There are few places that call kmem_cache_debug(s) (which tests if any of debug
> flags are enabled for a cache) immediatelly followed by a test for a specific
> flag. The compiler can probably eliminate the extra check, but we can make the
> code nicer by introducing kmem_cache_debug_flags() that works like
> kmem_cache_debug() (including the static key check) but tests for specifig
> flag(s). The next patches will add more users.
>
> Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx>

Please add this fixup per reviews.
----8<----