patch-2.4.0-test6 linux/mm/page_io.c

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

diff -u --recursive --new-file v2.4.0-test5/linux/mm/page_io.c linux/mm/page_io.c
@@ -126,7 +126,7 @@
  */
 void rw_swap_page_nolock(int rw, swp_entry_t entry, char *buf, int wait)
 {
-	struct page *page = mem_map + MAP_NR(buf);
+	struct page *page = virt_to_page(buf);
 	
 	if (!PageLocked(page))
 		PAGE_BUG(page);

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