]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: deduplicate io_openat{,2}_prep()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 3 Jun 2020 15:03:24 +0000 (18:03 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Jun 2020 17:14:19 +0000 (11:14 -0600)
commit6fcf25f0d5d7fe5c23bbd87bdc285901f27b4bd2
treeb51bcce8161e34857dfcd1a275d5c2002cb94708
parent1ac6c15bb3866d657fbfbb44b09b1686fa98a06f
io_uring: deduplicate io_openat{,2}_prep()

io_openat_prep() and io_openat2_prep() are identical except for how
struct open_how is built. Deduplicate it with a helper.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c