TBH, I'm not sure whether to simply revert r292255 or to apply this fix. The
following needs to be taken into account:
- r292255 does compaction, so that we will always use the minimum amount of
bounce pages.
- Since r292255 the bounce code now tries to always fill the bounce pages,
the offset of the segments is changed and we need to bounce the whole
buffer.
- Is it worth bouncing the full buffer (so more memcpy) in exchange for
maybe using less bounce pages and having the bounce code slightly
simplified?