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)
commitec65fea5a8d7a82d3137dd2a44197eb577da111f
treeb51bcce8161e34857dfcd1a275d5c2002cb94708
parent25e72d1012b30bdff712b563e6141a4f311d28d6
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