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>
Mon, 12 Apr 2021 01:30:34 +0000 (19:30 -0600)
commit40ae0ff70fb1379cb00041ef4061681e5e84e7f9
tree613f5140f651d8aa660fcbe1ead71ff9efab6de0
parent82fbcfa996e0b0f66ae0187082b0704d0ba50bdd
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