io_uring: move rsrc_put callback into io_rsrc_data
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:44 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:28:41 +0000 (15:28 -0600)
commitb0e7957c6ceb49fb0e769ca225f2558eaffec3fe
tree270935b756b1416ec2a60271c23dfd89ca7ba373
parent6787b535ee161defc9c6aeda5fd4a44ada2d5e4c
io_uring: move rsrc_put callback into io_rsrc_data

io_rsrc_node's callback operates only on a single io_rsrc_data and only
with its resources, so rsrc_put() callback is actually a property of
io_rsrc_data. Move it there, it makes code much nicecr.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9417c2fba3c09e8668f05747006a603d416d34b4.1617287883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c