patch-1.3.29 linux/mm/filemap.c

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

diff -u --recursive --new-file v1.3.28/linux/mm/filemap.c linux/mm/filemap.c
@@ -153,7 +153,7 @@
 {
 	unsigned long page = SWP_OFFSET(entry);
 
-	mem_map[page]++;
+	mem_map[page].count++;
 	page = (page << PAGE_SHIFT) + PAGE_OFFSET;
 	return mk_pte(page,vma->vm_page_prot);
 }
@@ -173,7 +173,7 @@
 			return 0;
 		set_pte(ptep, pte_mkclean(pte));
 		page = pte_page(pte);
-		mem_map[MAP_NR(page)]++;
+		mem_map[MAP_NR(page)].count++;
 	} else {
 		if (pte_none(pte))
 			return 0;

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