]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM/Hibernate: do not count debug pages as savable
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 30 Nov 2011 04:11:30 +0000 (15:11 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:49 +0000 (15:13 +1100)
commit0059af46bf9bddc1db61b5114d7258ec7bf8eee9
tree3fe531939e72964d0d72843b2aae7e8640bc0af6
parent0d23505b1a6253d9144395783a29aad87ed86d77
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