patch-2.3.99-pre3 linux/fs/proc/array.c

Next file: linux/fs/qnx4/inode.c
Previous file: linux/fs/pipe.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -402,7 +402,8 @@
 		++*pages;
 		if (pte_dirty(page))
 			++*dirty;
-		if (pte_pagenr(page) >= max_mapnr)
+		if ((pte_pagenr(page) >= max_mapnr) || 
+					PageReserved(pte_pagenr(page) + mem_map))
 			continue;
 		if (page_count(pte_page(page)) > 1)
 			++*shared;

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