io_uring: use AT_STATX_CACHED for IORING_OP_STATX fast path nonblock-path-lookup
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Dec 2020 17:57:13 +0000 (10:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 01:07:29 +0000 (18:07 -0700)
commit4f63722b938e8a14d9f4b3f9e9a259a5e3f67f21
tree19f204bacf08a2af529bad1faf5aacef39c8fa82
parent8dde16ca7b0cd8d1715cb8c4f5d81419cc981fe7
io_uring: use AT_STATX_CACHED for IORING_OP_STATX fast path

Instead of always going async, we can now attempt a cached attempt by
using AT_STATX_CACHED. This turns into LOOKUP_CACHED, and ensures that
we'll only do a fast path dentry lookup for path resolution.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c