mm, slab: add kerneldocs for common SLAB_ flags
authorVlastimil Babka <vbabka@suse.cz>
Wed, 9 Oct 2024 14:29:37 +0000 (16:29 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Tue, 29 Oct 2024 09:43:24 +0000 (10:43 +0100)
commitb6da940130579769a42605b2c7f529b6f14ef1f8
tree45f3c1e26675b135298ead16d6ee5d7cf7be99e7
parentb4b797d87745f79e1d3c945dc0db4093c9ae9904
mm, slab: add kerneldocs for common SLAB_ flags

We have many SLAB_ flags but many are used only internally, by kunit
tests or debugging subsystems cooperating with slab, or are set
according to slab_debug boot parameter.

Create kerneldocs for the commonly used flags that may be passed to
kmem_cache_create(). SLAB_TYPESAFE_BY_RCU already had a detailed
description, so turn it to a kerneldoc. Add some details for
SLAB_ACCOUNT, SLAB_RECLAIM_ACCOUNT and SLAB_HWCACHE_ALIGN. Reference
them from the __kmem_cache_create_args() kerneldoc.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/slab.h
mm/slab_common.c