patch-1.3.22 linux/mm/filemap.c

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

diff -u --recursive --new-file v1.3.21/linux/mm/filemap.c linux/mm/filemap.c
@@ -133,7 +133,7 @@
 	unsigned long page = pte_page(*page_table);
 	unsigned long entry = SWP_ENTRY(SHM_SWP_TYPE, MAP_NR(page));
 
-	pte_val(*page_table) = entry;
+	set_pte(page_table, __pte(entry));
 	invalidate();
 	error = filemap_write_page(vma, offset, page);
 	if (pte_val(*page_table) == entry)
@@ -171,7 +171,7 @@
 			return 0;
 		if (!pte_dirty(pte))
 			return 0;
-		*ptep = pte_mkclean(pte);
+		set_pte(ptep, pte_mkclean(pte));
 		page = pte_page(pte);
 		mem_map[MAP_NR(page)]++;
 	} else {

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