diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-11-01 07:48:31 +0300 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2026-01-13 23:16:44 +0300 |
| commit | 2e2d892fe9b7c27a415813019e5b4f86c761c9ab (patch) | |
| tree | 970e81c132181cfd3b5fd0f8ae640edd5fd9fdfb /include/linux | |
| parent | 67591df968f4ceb12c1f5d7f9caebc668200856b (diff) | |
| download | linux-2e2d892fe9b7c27a415813019e5b4f86c761c9ab.tar.xz | |
do_fchownat(): 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/linux')
0 files changed, 0 insertions, 0 deletions
