summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorVlastimil Babka (SUSE) <vbabka@kernel.org>2026-07-27 14:54:01 +0200
committerVlastimil Babka (SUSE) <vbabka@kernel.org>2026-07-31 15:50:47 +0200
commitb5bc35ace2c5c03440fb6fcf09e855a90cd89ffd (patch)
tree19a71564b326544bf0acaccf3f1d19df42451fbc /scripts/stackusage
parente684ee3bb54084eda60eb3d55e220f70b22b67ff (diff)
downloadlinux-next-b5bc35ace2c5c03440fb6fcf09e855a90cd89ffd.tar.gz
linux-next-b5bc35ace2c5c03440fb6fcf09e855a90cd89ffd.zip
mm/slab: replace slab.stride with obj_exts_in_object
The stride field is used to convert object index to an slabobj_ext so both compact arrays (kmalloc() or in-slab-leftover) and spread in-object-padding obj_ext layouts are supported. In practice thus the stride is always sizeof(slabobj_ext) or s->size. This simplifies the calculations, but with the upcoming slabobj_ext handling changes, it will be easier to stop storing the stride and instead just have a flag whether obj_ext is in the object padding. obj_exts_in_object() can then rely on this flag and slab_obj_ext() can use that to determine the stride. No functional change intended. Reviewed-by: Suren Baghdasaryan <surenb@google.com> Reviewed-by: Hao Li <hao.li@linux.dev> Link: https://patch.msgid.link/20260727-b4-objext_split-v3-7-c29ef0f1f257@kernel.org Reviewed-by: Harry Yoo (Oracle) <harry@kernel.org> Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions