Whamcloud - gitweb
LU-9679 osc: convert a while loop to for 06/37606/2
authorNeilBrown <neilb@suse.com>
Thu, 13 Dec 2018 00:00:38 +0000 (11:00 +1100)
committerOleg Drokin <green@whamcloud.com>
Sun, 1 Mar 2020 05:35:12 +0000 (05:35 +0000)
commitce429225a557a0529ca578fab528631cb3ea80eb
tree55e9b852b818e4e52fc521da159412623cf30be1
parent029b2e0eac5399edd4b9e06afdcc237c657b7d51
LU-9679 osc: convert a while loop to for

This loop uses 'continue' in several places,
and each one is proceeded by
   ext = next_extent(ext)
which also appears at the end.
This is exactly the pattern that a 'for' loop
simplifies.  So change to a for loop.

Linux-Commit 9083b739197b ("lustre: osc: convert a while loop to for")

Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Mr NeilBrown <neilb@suse.com>
Change-Id: Ie622690134f9b3ee829255bcf997d06289abd6e6
Reviewed-on: https://review.whamcloud.com/37606
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_cache.c