summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-11-01 07:48:31 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2026-01-13 23:16:43 +0300
commit0cf1149673da1153d32eeea67771a002530fda42 (patch)
tree9a8dce071e89918092de3b104e5a58b3480ee22c /include
parent24df85ffb9712cd6060588f6e08defcda5986efe (diff)
downloadlinux-0cf1149673da1153d32eeea67771a002530fda42.tar.xz
do_faccessat(): import pathname only once
Convert the user_path_at() call inside a retry loop into getname_flags() + filename_lookup() + putname() and leave only filename_lookup() inside the loop. Since we have the default logics for use of LOOKUP_EMPTY (passed iff AT_EMPTY_PATH is present in flags), just use getname_uflags() and don't bother with setting LOOKUP_EMPTY in lookup_flags - getname_uflags() will pass the right thing to getname_flags() and filename_lookup() doesn't care about LOOKUP_EMPTY at all. The things could be further simplified by use of cleanup.h stuff, but let's not clutter the patch with that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions