summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorThorsten Blum <blum@kernel.org>2026-09-19 23:39:00 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-25 17:17:42 +0200
commitb53f422491af2a134a57c1cffea67c575a1f699f (patch)
treea8399586599f6379e9a20ddf8842ee83aae412c6 /tools/lib/python/kdoc/parse_data_structs.py
parent98abb2b35835a7d62a53ad87942ff52c8babdb9e (diff)
downloadlinux-next-b53f422491af2a134a57c1cffea67c575a1f699f.tar.gz
linux-next-b53f422491af2a134a57c1cffea67c575a1f699f.zip
initramfs: Reduce hardlink hash allocation sizes
Each hardlink hash entry reserves N_ALIGN(PATH_MAX) bytes for its name. This makes every allocation larger than 4 KiB, placing it in the kmalloc-8k bucket even for short names. Use a flexible array with the already validated cpio name_len to reduce allocation sizes. Also use const for the read-only name parameter. Signed-off-by: Thorsten Blum <blum@kernel.org> Link: https://patch.msgid.link/20260919213859.24667-3-blum@kernel.org Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions