io_uring: abolish old io_put_file()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:43 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:42:53 +0000 (07:42 -0600)
commitfdad776c2b2b2a70b3cd74d221eecc66628be22e
treeacd36da67427693380e5588aad9d92cda51165d7
parenta0211d2fd63ea4198ade0a5a131049ebeba8a695
io_uring: abolish old io_put_file()

io_put_file() doesn't do a good job at generating a good code. Inline
it, so we can check REQ_F_FIXED_FILE first, prioritising FIXED_FILE case
over requests without files, and saving a memory load in that case.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c