]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
io_statx_prep(): use getname_uflags()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Sep 2024 04:26:57 +0000 (00:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Nov 2024 16:44:30 +0000 (11:44 -0500)
the only thing in flags getname_flags() ever cares about is
LOOKUP_EMPTY; anything else is none of its damn business.

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
io_uring/statx.c

index f7f9b202eec087756bea4af83e6c29c5336ddb10..6bc4651700a21269149489a1d91766e66191f7ae 100644 (file)
@@ -36,8 +36,7 @@ int io_statx_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
        sx->buffer = u64_to_user_ptr(READ_ONCE(sqe->addr2));
        sx->flags = READ_ONCE(sqe->statx_flags);
 
-       sx->filename = getname_flags(path,
-                                    getname_statx_lookup_flags(sx->flags));
+       sx->filename = getname_uflags(path, sx->flags);
 
        if (IS_ERR(sx->filename)) {
                int ret = PTR_ERR(sx->filename);