From fd1e326dddcf54c30d7bf8c7f5a5719d8ce60c7c Mon Sep 17 00:00:00 2001 From: "Rafael J. Wysocki" Date: Tue, 15 Mar 2011 00:45:46 +0100 Subject: [PATCH] --- yaml --- r: 235157 b: refs/heads/master c: bea3864fb627d110933cfb8babe048b63c4fc76e h: refs/heads/master i: 235155: 6f4b320e9bb2431eef46871f3761cf70c24119d0 v: v3 --- [refs] | 2 +- trunk/kernel/power/snapshot.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 19ba4b976cd2..5ebb494bca03 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 40dc166cb5dddbd36aa4ad11c03915ea538f5a61 +refs/heads/master: bea3864fb627d110933cfb8babe048b63c4fc76e diff --git a/trunk/kernel/power/snapshot.c b/trunk/kernel/power/snapshot.c index 64db648ff911..ca0aacc24874 100644 --- a/trunk/kernel/power/snapshot.c +++ b/trunk/kernel/power/snapshot.c @@ -42,15 +42,15 @@ static void swsusp_unset_page_forbidden(struct page *); /* * Preferred image size in bytes (tunable via /sys/power/image_size). - * 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. + * 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. */ unsigned long image_size; void __init hibernate_image_size_init(void) { - image_size = ((totalram_pages * 2) / 5) * PAGE_SIZE; + image_size = (totalram_pages / 3) * PAGE_SIZE; } /* List of PBEs needed for restoring the pages that were allocated before