[PATCH v4 36/59] vfs_open_tree(): use CLASS(filename_uflags)

Al Viro
2026-01-08T07:36:55Z

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