From: Al Viro Date: Fri, 20 Sep 2024 04:26:57 +0000 (-0400) Subject: io_statx_prep(): use getname_uflags() X-Git-Tag: v6.13-rc1~215^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e15e12d37f21c03dacac0c37561db5a222690c0;p=thirdparty%2Flinux.git 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 Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/io_uring/statx.c b/io_uring/statx.c index f7f9b202eec08..6bc4651700a21 100644 --- a/io_uring/statx.c +++ b/io_uring/statx.c @@ -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);