patch-2.4.20 linux-2.4.20/mm/highmem.c
Next file: linux-2.4.20/mm/memory.c
Previous file: linux-2.4.20/mm/filemap.c
Back to the patch index
Back to the overall index
-  Lines: 40
-  Date:
Thu Nov 28 15:53:15 2002
-  Orig file: 
linux-2.4.19/mm/highmem.c
-  Orig date: 
Fri Aug  2 17:39:46 2002
diff -urN linux-2.4.19/mm/highmem.c linux-2.4.20/mm/highmem.c
@@ -332,7 +332,7 @@
 	if (page)
 		return page;
 	/*
-	 * No luck. First, kick the VM so it doesnt idle around while
+	 * No luck. First, kick the VM so it doesn't idle around while
 	 * we are using up our emergency rations.
 	 */
 	wakeup_bdflush();
@@ -355,9 +355,7 @@
 	/* we need to wait I/O completion */
 	run_task_queue(&tq_disk);
 
-	current->policy |= SCHED_YIELD;
-	__set_current_state(TASK_RUNNING);
-	schedule();
+	yield();
 	goto repeat_alloc;
 }
 
@@ -370,7 +368,7 @@
 	if (bh)
 		return bh;
 	/*
-	 * No luck. First, kick the VM so it doesnt idle around while
+	 * No luck. First, kick the VM so it doesn't idle around while
 	 * we are using up our emergency rations.
 	 */
 	wakeup_bdflush();
@@ -393,9 +391,7 @@
 	/* we need to wait I/O completion */
 	run_task_queue(&tq_disk);
 
-	current->policy |= SCHED_YIELD;
-	__set_current_state(TASK_RUNNING);
-	schedule();
+	yield();
 	goto repeat_alloc;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)