io_statx_prep(): use getname_uflags()

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>
This commit is contained in:
Al Viro 2024-09-20 00:26:57 -04:00
parent e896474fe4
commit 8e15e12d37

View 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->buffer = u64_to_user_ptr(READ_ONCE(sqe->addr2));
sx->flags = READ_ONCE(sqe->statx_flags); sx->flags = READ_ONCE(sqe->statx_flags);
sx->filename = getname_flags(path, sx->filename = getname_uflags(path, sx->flags);
getname_statx_lookup_flags(sx->flags));
if (IS_ERR(sx->filename)) { if (IS_ERR(sx->filename)) {
int ret = PTR_ERR(sx->filename); int ret = PTR_ERR(sx->filename);