diff options
| author | Thorsten Blum <blum@kernel.org> | 2026-09-19 23:39:00 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-25 17:17:42 +0200 |
| commit | b53f422491af2a134a57c1cffea67c575a1f699f (patch) | |
| tree | a8399586599f6379e9a20ddf8842ee83aae412c6 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | 98abb2b35835a7d62a53ad87942ff52c8babdb9e (diff) | |
| download | linux-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
