Files
linux-stable-mirror/include/linux
Al Viro 8c888b3190 struct filename: saner handling of long names
Always allocate struct filename from names_cachep, long name or short;
short names would be embedded into struct filename.  Longer ones do
not cannibalize the original struct filename - put them into kmalloc'ed
buffers (PATH_MAX-sized for import from userland, strlen() + 1 - for
ones originating kernel-side, where we know the length beforehand).

Cutoff length for short names is chosen so that struct filename would be
192 bytes long - that's both a multiple of 64 and large enough to cover
the majority of real-world uses.

Simplifies logics in getname()/putname() and friends.

[fixed an embarrassing braino in EMBEDDED_NAME_MAX, first reported by
Dan Carpenter]

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2026-01-13 15:16:44 -05:00
..
2026-01-11 06:09:11 -10:00
2025-11-18 22:26:02 +05:30
2026-01-13 15:16:44 -05:00
2025-12-12 12:36:44 -07:00
2025-12-04 07:19:26 -07:00
2025-12-09 23:29:42 -08:00
2025-11-21 11:21:31 +01:00
2025-12-13 20:04:32 +12:00
2025-12-23 11:23:10 -08:00
2026-01-11 06:09:11 -10:00
2026-01-11 06:09:11 -10:00
2025-11-23 12:30:40 +01:00
2025-11-20 13:43:59 -08:00
2026-01-11 06:09:11 -10:00
2026-01-11 06:09:11 -10:00
2025-11-27 14:24:30 -08:00
2025-11-18 17:52:54 +01:00
2026-01-11 06:09:11 -10:00
2025-11-28 09:21:18 -07:00
2025-11-27 14:22:31 +01:00
2025-11-20 17:57:40 -08:00
2025-11-25 10:07:42 +01:00
2026-01-11 06:09:11 -10:00
2025-12-24 08:02:55 -05:00
2025-11-24 15:08:54 -08:00