patch-2.4.6 linux/fs/proc/array.c
Next file: linux/fs/proc/base.c
Previous file: linux/fs/partitions/check.c
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Tue Jun 12 17:27:29 2001
-  Orig file: 
v2.4.5/linux/fs/proc/array.c
-  Orig date: 
Fri May  4 14:44:06 2001
diff -u --recursive --new-file v2.4.5/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -421,13 +421,12 @@
 		++*total;
 		if (!pte_present(page))
 			continue;
+		ptpage = pte_page(page);
+		if ((!VALID_PAGE(ptpage)) || PageReserved(ptpage))
+			continue;
 		++*pages;
 		if (pte_dirty(page))
 			++*dirty;
-		ptpage = pte_page(page);
-		if ((!VALID_PAGE(ptpage)) || 
-					PageReserved(ptpage))
-			continue;
 		if (page_count(pte_page(page)) > 1)
 			++*shared;
 	} while (address < end);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)