io_uring: cleanup files_update looping
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 26 Jan 2021 13:51:09 +0000 (13:51 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 15:55:31 +0000 (08:55 -0700)
commit81de6e152c065e83b2bf55e365bd102268c47e84
treebec117b09447d8e6acced952bb9975ec5170c77e
parent511975a8b18e660ea0e7b5b4947e5c40999943ed
io_uring: cleanup files_update looping

Replace a while with a simple for loop, that looks way more natural, and
enables us to use "continue" as indexes are no more updated by hand in
the end of the loop.

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