[Suspend2][ 24/32] [Suspend2] Set extra page forward flag.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux