]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c9c0cf44c20cab98f057ec002770125f4ea9c7a
tree6fff919b9bfe96655cbf2aaa88fbe907615253e0
parent666b919ffda70eecf5a2f7974ebcbec564733c36
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