Skip to content

Commit

Permalink
io_statx_prep(): use getname_uflags()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Nov 13, 2024
1 parent e896474 commit 8e15e12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions io_uring/statx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e15e12

Please sign in to comment.