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>
Thu, 25 Mar 2021 16:24:24 +0000 (10:24 -0600)
commitb80c77e2d41424d9beb60ca2b4b576e43c34b81a
tree5def8ca652d7230446d5a5f75d324a568e1bcea5
parentbee0dc2a9532b6f5db1a46c5b524c85c6df953cf
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