]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
user_statfs(): import pathname only once
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 1 Nov 2025 04:48:31 +0000 (00:48 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Jan 2026 20:16:44 +0000 (15:16 -0500)
commit85a4fe3c99a78999e5ce41d51292a1b665f314be
tree3e30bcc5e50fc8c8c148faf817194190261f44c7
parentc3fa2b7cf5dda5a73480361303441db4ba7f0e6a
user_statfs(): 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.

In this case we never pass LOOKUP_EMPTY, so getname_flags() is equivalent
to plain getname().

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>
fs/statfs.c