ratelimit: convert flags to int to save 8 bytes in size
authorMateusz Guzik <mjguzik@gmail.com>
Sat, 17 Aug 2024 12:37:54 +0000 (14:37 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:38 +0000 (20:43 -0700)
commitd994c238347d7ba4de15da00985e1bea75e91dc7
treecca0ed991e0536f3c985237297578a3412a50ab9
parent076979ee62f23c0eff035e0528b4cfadbe743255
ratelimit: convert flags to int to save 8 bytes in size

Only bit 1 is used, making an unsigned long a total overkill.

This brings it from 40 to 32 bytes, which in turn shrinks user_struct from
136 to 128 bytes.  Since the latter is allocated with hwalign, this means
the total usage goes down from 192 to 128 bytes per object.

No functional changes.

Link: https://lkml.kernel.org/r/20240817123754.240924-1-mjguzik@gmail.com
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/ratelimit_types.h