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>
Mon, 1 Feb 2021 17:02:43 +0000 (10:02 -0700)
commit67973b933e347c38478b591d6c9dc076bea7c9dc
tree6fff919b9bfe96655cbf2aaa88fbe907615253e0
parent7c6607313f032b73638a6f752cb4adf50ba947cf
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