summaryrefslogtreecommitdiff
path: root/mm/mm_init.c
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2022-12-14 02:45:17 +0000
committerSuren Baghdasaryan <surenb@google.com>2024-02-11 10:45:55 -0800
commit3ab9e6a75308b9ba298489ba5294d34cf7baf10d (patch)
treeecb39b779a16af834cb1e616b209569140653c53 /mm/mm_init.c
parent662aa876383c37e50dfa716a5e5791d70fcac74e (diff)
codetag: debug: skip objext checking when it's for objext itself
objext objects are created with __GFP_NO_OBJ_EXT flag and therefore have no corresponding objext themselves (otherwise we would get an infinite recursion). When freeing these objects their codetag will be empty and when CONFIG_MEM_ALLOC_PROFILING_DEBUG is enabled this will lead to false warnings. Introduce CODETAG_EMPTY special codetag value to mark allocations which intentionally lack codetag to avoid these warnings. Set objext codetags to CODETAG_EMPTY before freeing to indicate that the codetag is expected to be empty. Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions