From 62d4c30c3c5284303379377c6a5443dc6e05f9c6 Mon Sep 17 00:00:00 2001 From: "Rafael J. Wysocki" Date: Sun, 15 May 2011 11:39:48 +0200 Subject: [PATCH] --- yaml --- r: 245349 b: refs/heads/master c: 1c1be3a949a61427a962771c85a347c822aeb991 h: refs/heads/master i: 245347: 125f605f7e850984618cd4058d66e3c2c00c85d1 v: v3 --- [refs] | 2 +- trunk/kernel/power/snapshot.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 62a8f1ff615f..aad3b422b3b8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ddeb648708108091a641adad0a438ec4fd8bf190 +refs/heads/master: 1c1be3a949a61427a962771c85a347c822aeb991 diff --git a/trunk/kernel/power/snapshot.c b/trunk/kernel/power/snapshot.c index d69e3323a85d..ace55889f702 100644 --- a/trunk/kernel/power/snapshot.c +++ b/trunk/kernel/power/snapshot.c @@ -54,15 +54,15 @@ void __init hibernate_reserved_size_init(void) /* * Preferred image size in bytes (tunable via /sys/power/image_size). - * When it is set to N, the image creating code will do its best to - * ensure the image size will not exceed N bytes, but if that is - * impossible, it will try to create the smallest image possible. + * When it is set to N, swsusp will do its best to ensure the image + * size will not exceed N bytes, but if that is impossible, it will + * try to create the smallest image possible. */ unsigned long image_size; void __init hibernate_image_size_init(void) { - image_size = (totalram_pages / 3) * PAGE_SIZE; + image_size = ((totalram_pages * 2) / 5) * PAGE_SIZE; } /* List of PBEs needed for restoring the pages that were allocated before