]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM/Hibernate: do not count debug pages as savable
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 16 Dec 2011 04:49:52 +0000 (15:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:27 +0000 (18:19 +1100)
commitf3410167e27f762498324418256a827072f5d3c0
tree8ee871d7003f914443e6340b7dd3d3d448b960c1
parent02c54bc278adbb43218f2b90b2138a351264be9b
PM/Hibernate: do not count debug pages as savable

When debugging with CONFIG_DEBUG_PAGEALLOC and debug_guardpage_minorder >
0, we have lot of free pages that are not marked so.  Snapshot code
account them as savable, what cause hibernate memory preallocation
failure.

It is pretty hard to make hibernate allocation succeed with
debug_guardpage_minorder=1.  This change at least make it possible when
system has relatively big amount of RAM.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/power/snapshot.c