diff options
author | Suren Baghdasaryan <surenb@google.com> | 2022-12-14 02:45:17 +0000 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2024-03-21 00:05:44 +0000 |
commit | 7237c8737c3172f26bc517370e51a1d265c08286 (patch) | |
tree | ff2047633377d8510e36ec49ec93b5056cf1d2b9 /rust/helpers.c | |
parent | 2886d227436a7aea812f2b498a939cb9aa4841ab (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 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions