criu: pagemap: don't traverse the entire pagemap while seeking a page
Since commit 95009c4c6d5 (criu: pagemap: introduce advance() helper for pagemap iteration) seek_pagemap_page traverses the entire pagemap, rather than starts each time from the last pagemap that was used. With large pagemaps (like, e.g. in maps05 case) the new behavior causes exponential increase in amount of calls to skip_pagemap_page for every new snapshot. Let's restore the original behavior. Fixes: #217 Reported-by:Andrey Vagin <avagin@openvz.org> Signed-off-by:
Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
Showing
Please
register
or
sign in
to comment