]> 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, 2 Dec 2011 03:12:02 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 03:59:25 +0000 (14:59 +1100)
commitfd926782a4422723b36751e3e2f95c4c7dfc0444
tree57d6ddbdffa853f0c25558d6e0de6babd00541f2
parente377be215cc14bbe1f04c134fe07a54b25c210e1
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