]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61a15ecdfcf056d4ec4035e64c9c9b4f493b22c0
tree3b54d3a77b3ce8817bfb996038a2f73cda9efa0d
parentc24fb6f28c71dddba57d4d19030efc04b020d8c1
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