diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-04-17 12:42:40 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-21 10:32:47 +0300 |
| commit | 0447533faeeefc02c2979abf46c4dcbbbe6d9871 (patch) | |
| tree | abce5c751606722e5c2da3a38d5a4eee062432de /scripts | |
| parent | 80008c75f4523076a0ada0ac883ad8890b830ec9 (diff) | |
| download | linux-0447533faeeefc02c2979abf46c4dcbbbe6d9871.tar.xz | |
dcache: use kmalloc_flex() in __d_alloc
Use kmalloc_flex() when allocating a new 'struct external_name' in
__d_alloc() to replace offsetof() and the open-coded size arithmetic,
and to keep the size type-safe.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260417094238.551114-3-thorsten.blum@linux.dev
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
