]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PM/Hibernate: do not count debug pages as savable
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 8 Dec 2011 04:41:46 +0000 (15:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:12 +0000 (17:43 +1100)
commit8cdeb20bf3d61b546c48c7846fd0147b8b4ec18e
tree3cedb46d3dfef562dc798399ac0c43764c309088
parent19224577f74a79c7cecc83067728c5989caca9d3
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