> Remove which part? You think the increment can go away and be replaced by
> the loop?
>
> Yeah, I thought that the intention was that you check if the current
pooled segment is written to before you move on to the next segment. If
it's incremented here, then it's already pointing at the next segment.
Maybe I don't understand it correctly.

-- 
Ning