]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37e35ee4a7baa406a3c1cea57d17217132fa3057
tree613f5140f651d8aa660fcbe1ead71ff9efab6de0
parent8332cf5c4177bf454b428901e8137c1912f2ad74
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