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/35] [Suspend2] Invalidate filewriter image.
Date
Invalidate an image stored by the filewriter.

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

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

diff --git a/kernel/power/suspend_file.c b/kernel/power/suspend_file.c
index 4f9d6f5..04f9cd0 100644
--- a/kernel/power/suspend_file.c
+++ b/kernel/power/suspend_file.c
@@ -757,3 +757,21 @@ static unsigned long filewriter_storage_
(block_chain.allocs - block_chain.frees));
}

+/*
+ * filewriter_invalidate_image
+ *
+ */
+static int filewriter_invalidate_image(void)
+{
+ int result;
+
+ if (nr_suspends > 0)
+ filewriter_release_storage();
+
+ result = filewriter_signature_op(INVALIDATE);
+ if (result == 1 && !nr_suspends)
+ printk(KERN_WARNING name_suspend "Image invalidated.\n");
+
+ return result;
+}
+
--
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:00    [W:0.154 / U:2.720 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site