[PATCH 1/7] Swap Migration: Fix double unlock

Christoph Lameter
2005-11-28T20:43:08Z

SwapMig: fix double page unlock

The cleanup patches screwed things up slightly. In case of an unsuccessful
migration a page may be unlocked twice.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.15-rc2-mm1/mm/vmscan.c
===================================================================
--- linux-2.6.15-rc2-mm1.orig/mm/vmscan.c 2005-11-28 11:06:15.000000000 -0800
+++ linux-2.6.15-rc2-mm1/mm/vmscan.c 2005-11-28 11:23:45.000000000 -0800
@@ -751,6 +751,7 @@ redo:
list_move(&page->lru, moved);
continue;
}
+ goto next;

unlock_page:
unlock_page(page);