OSDN Git Service

io_uring: refactor io_openat2()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 24 Jun 2021 14:10:00 +0000 (15:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 20:15:39 +0000 (14:15 -0600)
commit12dcb58ac785ee678f577e1502d966b538375aae
tree3b54d3a77b3ce8817bfb996038a2f73cda9efa0d
parent9ba6a1c06279ce499fcf755d8134d679a1f3b4ed
io_uring: refactor io_openat2()

Put do_filp_open() fail path of io_openat2() under a single if,
deduplicating put_unused_fd(), making it look better and helping
the hot path.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f4c84d25c049d0af2adc19c703bbfef607200209.1624543113.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c