Commit dddadb1a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

VSC iterator, take N

parent 679c64d0
......@@ -444,10 +444,12 @@ VSC_Iter(struct vsc *vsc, struct vsm *vsm, VSC_iter_f *fiter, void *priv)
} else {
vsc_expose(vsc, sp, 0);
}
if (sp != NULL && fiter != NULL && sp->head->ready < 2) {
i = vsc_iter_seg(vsc, sp, fiter, priv);
if (sp != NULL) {
if (fiter != NULL && sp->head->ready < 2)
i = vsc_iter_seg(vsc, sp, fiter, priv);
sp = VTAILQ_NEXT(sp, list);
}
if (i)
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment