patch-2.1.110 linux/mm/vmscan.c

Next file: linux/net/appletalk/aarp.c
Previous file: linux/mm/vmalloc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -533,7 +533,6 @@
 	add_wait_queue(&kswapd_wait, &wait);
 	while (1) {
 		int tries;
-		int tried = 0;
 
 		current->state = TASK_INTERRUPTIBLE;
 		flush_signals(current);
@@ -594,9 +593,10 @@
 	int retval;
 
 	lock_kernel();
-	retval = 0;
 	do {
-		retval |= do_try_to_free_page(gfp_mask);
+		retval = do_try_to_free_page(gfp_mask);
+		if (!retval)
+			break;
 		count--;
 	} while (count > 0);
 	unlock_kernel();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov