summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVlastimil Babka (SUSE) <vbabka@kernel.org>2026-07-27 14:54:04 +0200
committerVlastimil Babka (SUSE) <vbabka@kernel.org>2026-08-04 09:52:28 +0200
commitc4ec6cb55750c80fc3d43b310eb7ccab33df3dcd (patch)
treee01009aa0059e047e7ff187209df5845b3b736a3 /scripts
parent580258a19284fce98de9013baa81633ab9d93515 (diff)
downloadlinux-next-c4ec6cb55750c80fc3d43b310eb7ccab33df3dcd.tar.gz
linux-next-c4ec6cb55750c80fc3d43b310eb7ccab33df3dcd.zip
mm/slab: reduce slabobj_ext memory with allocation profiling disabled
When memory allocation profiling is compiled in but permanently disabled on boot with (implicit or explicit) "never" parameter, stop allocating (thus wasting) memory for the codetag_ref parts of slabobj_ext metadata. Do this by using the new slab_obj_ext_has_codetag() helper in cache_obj_ext_size(). Additionally add a slab_obj_ext_has_codetag() check in handle_failed_objexts_alloc(). The function might get called with memory allocation profiling disabled, when the obj_ext array is allocated for objcg pointers only. Setting codetag refs as empty is unnecessary in that case, and with them not allocated anymore would now result in memory corruption. Reviewed-by: Suren Baghdasaryan <surenb@google.com> Link: https://patch.msgid.link/20260727-b4-objext_split-v3-10-c29ef0f1f257@kernel.org Reviewed-by: Hao Li <hao.li@linux.dev> Reviewed-by: Harry Yoo <harry@kernel.org> Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions