patch-2.3.32 linux/mm/swapfile.c

Next file: linux/net/core/datagram.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.31/linux/mm/swapfile.c linux/mm/swapfile.c
@@ -106,13 +106,11 @@
 			offset = scan_swap_map(p, count);
 			swap_device_unlock(p);
 			if (offset) {
-				int curtp = type;
-
 				entry = SWP_ENTRY(type,offset);
 				type = swap_info[type].next;
 				if (type < 0 ||
 					p->prio != swap_info[type].prio) {
-						swap_list.next = curtp;
+						swap_list.next = swap_list.head;
 				} else {
 					swap_list.next = type;
 				}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)