aio: use iocb_put() instead of open coding it
commit71ebc6fef0f53459f37fb39e1466792232fa52ee
authorJens Axboe <axboe@kernel.dk>
Sun, 25 Nov 2018 04:33:09 +0000 (24 21:33 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Dec 2018 15:29:58 +0000 (18 08:29 -0700)
tree65a2aaf2a92a6ab8fc0880c03b51a1c9c0ec5639
parenta79d40e9b0f309dcddc4e0bf5b64e51e28153e55
aio: use iocb_put() instead of open coding it

Replace the percpu_ref_put() + kmem_cache_free() with a call to
iocb_put() instead.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/aio.c