]> 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)
commitb9b79f383c0fa60ca0690a5c7e5b528b0f03cf66
tree6fff919b9bfe96655cbf2aaa88fbe907615253e0
parent9d4ee42d89d485e7bee5e85521ec0464157d7f38
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