: Improve performance of LZO hibernation
Review
Quoted 2 lines · Bojan Smojver
(quoted diff) +2
-0+ size_t ring = 0, pg = 0, npages, + have = 0, want = MAP_PAGE_ENTRIES, need, asked = 0;
The want = MAP_PAGE_ENTRIES part is a bug for sure (a leftover from the previous version of the patch). The value of want should be set to npages, once npages is set after the page allocation loop, of course.
Signature · 1 line
Bojan