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>
Sun, 4 Apr 2021 21:28:41 +0000 (15:28 -0600)
commit26e06730b6ae48d2eb8966b1167b439435478295
treef2214c204662e6f41dba3baf9adcf23dcd4f4fbd
parent9988c06a2cb078404805274e905b0b68939a4133
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