patch-1.3.59 linux/mm/filemap.c

Next file: linux/mm/page_alloc.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.58/linux/mm/filemap.c linux/mm/filemap.c
@@ -168,8 +168,7 @@
 	if (page) {
 		unsigned long addr;
 
-		if (!page->uptodate)
-			sleep_on(&page->wait);
+		wait_on_page(page);
 		addr = page_address(page);
 		memcpy((void *) ((pos & ~PAGE_MASK) + addr), buf, count);
 		free_page(addr);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this