OSDN Git Service

io_uring: reuse io_rsrc_node_destroy()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:47 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:34 +0000 (19:30 -0600)
commit28a9fe2521348ee350b65ae89e63c1def87b0cb6
treebd7f797e997c468c8fe2f6243a218d4bd6f41627
parenta7f0ed5acdc9ce251c66b9380e08766e59fa4ee8
io_uring: reuse io_rsrc_node_destroy()

Reuse io_rsrc_node_destroy() in __io_rsrc_put_work(). Also move it to a
more appropriate place -- to the other node routines, and remove forward
declaration.

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