Free storage allocated for filewriter use.
Signed-off-by: Nigel Cunningham <[email protected]>
kernel/power/suspend_file.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/kernel/power/suspend_file.c b/kernel/power/suspend_file.c
index 74d97a0..257acca 100644
--- a/kernel/power/suspend_file.c
+++ b/kernel/power/suspend_file.c
@@ -415,3 +415,15 @@ static int filewriter_storage_allocated(
return result;
}
+static int filewriter_release_storage(void)
+{
+ if ((test_action_state(SUSPEND_KEEP_IMAGE)) &&
+ test_suspend_state(SUSPEND_NOW_RESUMING))
+ return 0;
+
+ suspend_put_extent_chain(&block_chain);
+
+ header_pages = main_pages = 0;
+ return 0;
+}
+
--
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]