[patch] highmem /proc/*/statm fix (2.3.26)

Andrea Arcangeli (andrea@suse.de)
Tue, 9 Nov 1999 23:53:26 +0100 (CET)


This patch fixes a bug inserted with the highmem pgtable breakage.

Against 2.3.26:

--- 2.3.26/fs/proc/array.c Sun Nov 7 17:33:37 1999
+++ /tmp/array.c Tue Nov 9 23:39:13 1999
@@ -813,9 +813,9 @@
++*pages;
if (pte_dirty(page))
++*dirty;
- if (MAP_NR(pte_page(page)) >= max_mapnr)
+ if (pte_pagenr(page) >= max_mapnr)
continue;
- if (page_count(mem_map + MAP_NR(pte_page(page))) > 1)
+ if (page_count(pte_page(page)) > 1)
++*shared;
} while (address < end);
}

Andrea

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/