diff options
author | Suren Baghdasaryan <surenb@google.com> | 2024-02-24 04:58:00 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-03-05 04:01:18 +0300 |
commit | 772dd0342727cc3c3b676b5d97c99708e75730a2 (patch) | |
tree | 62127c3cd86f138013ba89c6a6d65bf3d80b8a3b /mm/huge_memory.c | |
parent | 2864f3d0f5831a50253befc5d4583868268b7153 (diff) | |
download | linux-772dd0342727cc3c3b676b5d97c99708e75730a2.tar.xz |
mm: enumerate all gfp flags
Introduce GFP bits enumeration to let compiler track the number of used
bits (which depends on the config options) instead of hardcoding them.
That simplifies __GFP_BITS_SHIFT calculation.
Link: https://lkml.kernel.org/r/20240224015800.2569851-1-surenb@google.com
Suggested-by: Petr Tesařík <petr@tesarici.cz>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Petr Tesarik <petr@tesarici.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions