Re: [PATCH]: Improve performance of LZO hibernation

From: Bojan Smojver
Date: Mon Sep 19 2011 - 00:29:55 EST


On Mon, 2011-09-19 at 14:14 +1000, Bojan Smojver wrote:
> + 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.

--
Bojan

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/