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>
Sun, 11 Apr 2021 23:41:59 +0000 (17:41 -0600)
commite1d767f078b88423bb8ed179fbfe3369395e10f8
tree2a7afe92af793a3074eaa786165cd55848989bc2
parent094bae49e5ed9c30c1a6e50e121be20469486fab
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