]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
getname_flags() massage, part 1
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Nov 2025 22:15:23 +0000 (17:15 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Jan 2026 20:16:44 +0000 (15:16 -0500)
commit8ba29c85e2ef24764a05b557ebeca32f9bfafada
tree44ad4d04078dba77013e5dfc0f052a589d811ac8
parentca2a04e84af79596e5cd9cfe697d5122ec39c8ce
getname_flags() massage, part 1

In case of long name don't reread what we'd already copied.
memmove() it instead.  That avoids the possibility of ending
up with empty name there and the need to look at the flags
on the slow path.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c