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, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commitdab8a64c9fb8a5bdf752da6b5961ab6ec7f12236
tree7a500710207abd828f4181252e1072c018f714b8
parentd2b9eb2de72f0b2ffe2995efac66a3d6f89dec82
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