io_uring: split ref_node alloc and init
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Jan 2021 17:37:49 +0000 (17:37 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commitbc9744cd162b2f6c38d75dc49c310677dc13afa8
treea751ee35d7dd531f90d11765f37a2c2b194ae337
parent6802535df7bf807c94de32a9d0bf0401d3109671
io_uring: split ref_node alloc and init

A simple prep patch allowing to set refnode callbacks after it was
allocated. This needed to 1) keep ourself off of hi-level functions
where it's not pretty and they are not necessary 2) amortise ref_node
allocation in the future, e.g. for updates.

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