PM/Hibernate: Fix memory shrinking
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 18 Apr 2009 15:23:41 +0000 (17:23 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Apr 2009 18:36:58 +0000 (11:36 -0700)
commita21e25536169432cf9174d631972bc1cd4c75062
tree5414335eae4b34be3e0cc0374b81d8303c6a95af
parentaefe6475720bd5eb8aacbc881488f3aa65618562
PM/Hibernate: Fix memory shrinking

Commit d979677c4c0 ("mm: shrink_all_memory(): use sc.nr_reclaimed")
broke the memory shrinking used by hibernation, becuse it did not update
shrink_all_zones() in accordance with the other changes it made.

Fix this by making shrink_all_zones() update sc->nr_reclaimed instead of
overwriting its value.

This fixes http://bugzilla.kernel.org/show_bug.cgi?id=13058

Reported-and-tested-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c