diff options
author | Vlastimil Babka <[email protected]> | 2024-02-23 19:27:18 +0100 |
---|---|---|
committer | Vlastimil Babka <[email protected]> | 2024-02-26 10:10:07 +0100 |
commit | cc61eb851c9ae38546d7df6076fd883d3dbc322d (patch) | |
tree | a2103acc92def90e1de4f23de700f201e92a0bbb /net/unix/af_unix.c | |
parent | cdeeaaba174886aa6c1ff4c0c5449c5066dbe82f (diff) |
mm, slab: use an enum to define SLAB_ cache creation flags
The values of SLAB_ cache creation flags are defined by hand, which is
tedious and error-prone. Use an enum to assign the bit number and a
__SLAB_FLAG_BIT() macro to #define the final flags.
This renumbers the flag values, which is OK as they are only used
internally.
Also define a __SLAB_FLAG_UNUSED macro to assign value to flags disabled
by their respective config options in a unified and sparse-friendly way.
Reviewed-and-tested-by: Xiongwei Song <[email protected]>
Reviewed-by: Chengming Zhou <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions