lkml.org 
[lkml]   [2006]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[Suspend2][ 24/32] [Suspend2] Set extra page forward flag.
Date
Set the flag that says the next forward_one_page should actually go forward
to pages. This is used at resume time when we get the first page of the
header from the page pointed to by resume2= (bootstrapping), and then
actually want the second page at the point where we do need to get another
page.

We can't just go forward one page right away because we haven't yet
loaded the extent chain that contains the block data. But loading the
extent chain that contains the block data might need the extra page (if
badly fragmented). Catch 22, hence this flag.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>

kernel/power/suspend_block_io.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/kernel/power/suspend_block_io.c b/kernel/power/suspend_block_io.c
index fdbbe4b..ffc2e16 100644
--- a/kernel/power/suspend_block_io.c
+++ b/kernel/power/suspend_block_io.c
@@ -815,3 +815,9 @@ static int forward_one_page(void)

return 0;
}
+
+static void set_extra_page_forward(void)
+{
+ extra_page_forward = 1;
+}
+
--
Nigel Cunningham nigel at suspend2 dot net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-27 01:12    [W:0.095 / U:11.720 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site