Fix a problem in the discovering of small (1 pp) partitions in presence of
discontiguous partitions.
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Cc: Karel Zak <kzak@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
continue;
}
lvip[lv_ix].pps_found += 1;
- if (lp_ix != next_lp_ix)
- continue;
- if (lp_ix == 1)
+ if (lp_ix == 1) {
cur_lv_ix = lv_ix;
- else if (lv_ix != cur_lv_ix)
next_lp_ix = 1;
+ } else if (lv_ix != cur_lv_ix || lp_ix != next_lp_ix) {
+ next_lp_ix = 1;
+ continue;
+ }
if (lp_ix == lvip[lv_ix].pps_per_lv) {
char tmp[70];