patch-1.3.87 linux/ipc/shm.c
Next file: linux/kernel/ksyms.c
Previous file: linux/ipc/msg.c
Back to the patch index
Back to the overall index
-  Lines: 9
 -  Date:
Thu Apr 11 14:29:41 1996
 -  Orig file: 
v1.3.86/linux/ipc/shm.c
 -  Orig date: 
Wed Apr  3 16:06:57 1996
 
diff -u --recursive --new-file v1.3.86/linux/ipc/shm.c linux/ipc/shm.c
@@ -712,7 +712,7 @@
 	pte_val(page) = shp->shm_pages[idx];
 	if (!pte_present(page))
 		goto check_table;
-	if (dma && !mem_map[MAP_NR(pte_page(page))].dma)
+	if (dma && !PageDMA(MAP_NR(pte_page(page)) + mem_map))
 		goto check_table;
 	swap_attempts++;
 
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