[PATCH v5 48/68] vfs_open_tree(): use CLASS(filename_uflags)

From: Al Viro

Date: Tue Jan 13 2026 - 23:31:52 EST


Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
fs/namespace.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/namespace.c b/fs/namespace.c
index d632180f9b1a..888df8ee43bc 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -3082,13 +3082,12 @@ static struct file *vfs_open_tree(int dfd, const char __user *filename, unsigned
lookup_flags &= ~LOOKUP_AUTOMOUNT;
if (flags & AT_SYMLINK_NOFOLLOW)
lookup_flags &= ~LOOKUP_FOLLOW;
- if (flags & AT_EMPTY_PATH)
- lookup_flags |= LOOKUP_EMPTY;

if (detached && !may_mount())
return ERR_PTR(-EPERM);

- ret = user_path_at(dfd, filename, lookup_flags, &path);
+ CLASS(filename_uflags, name)(filename, flags);
+ ret = filename_lookup(dfd, name, lookup_flags, &path, NULL);
if (unlikely(ret))
return ERR_PTR(ret);

--
2.47.3