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, 4 Apr 2021 21:27:24 +0000 (15:27 -0600)
commit7d25aff8e00cedbbe7c8516b1f87ef9af0c6cbd4
tree345ee4a5f3c78b284b451914ce7b1ed0a0212143
parentc4405dee37b84d9a00bd4be0c5993dd2ce86b496
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