aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-03-23 05:59:58 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-23 10:38:07 -0500
commit2b322ce210aec74ae0d02938d3a01e29fe079469 (patch)
treea9cb9aa9530cadacae62caf009db506db16eb3c1
parentbdaff4a331db46f3bd953f413316c4603c4004b4 (diff)
[PATCH] revert "swsusp: fix breakage with swap on lvm"
This was a temporary thing for 2.6.16. Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--kernel/power/swsusp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c
index 2d9d08f72f76..4e90905f0e87 100644
--- a/kernel/power/swsusp.c
+++ b/kernel/power/swsusp.c
@@ -153,11 +153,13 @@ static int swsusp_swap_check(void) /* This is called before saving image */
153{ 153{
154 int i; 154 int i;
155 155
156 if (!swsusp_resume_device)
157 return -ENODEV;
156 spin_lock(&swap_lock); 158 spin_lock(&swap_lock);
157 for (i = 0; i < MAX_SWAPFILES; i++) { 159 for (i = 0; i < MAX_SWAPFILES; i++) {
158 if (!(swap_info[i].flags & SWP_WRITEOK)) 160 if (!(swap_info[i].flags & SWP_WRITEOK))
159 continue; 161 continue;
160 if (!swsusp_resume_device || is_resume_device(swap_info + i)) { 162 if (is_resume_device(swap_info + i)) {
161 spin_unlock(&swap_lock); 163 spin_unlock(&swap_lock);
162 root_swap = i; 164 root_swap = i;
163 return 0; 165 return 0;