|
@@ -361,12 +361,11 @@ static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
|
|
if (!pte_present(ptent))
|
|
if (!pte_present(ptent))
|
|
continue;
|
|
continue;
|
|
|
|
|
|
- mss->resident += PAGE_SIZE;
|
|
|
|
-
|
|
|
|
page = vm_normal_page(vma, addr, ptent);
|
|
page = vm_normal_page(vma, addr, ptent);
|
|
if (!page)
|
|
if (!page)
|
|
continue;
|
|
continue;
|
|
|
|
|
|
|
|
+ mss->resident += PAGE_SIZE;
|
|
/* Accumulate the size in pages that have been accessed. */
|
|
/* Accumulate the size in pages that have been accessed. */
|
|
if (pte_young(ptent) || PageReferenced(page))
|
|
if (pte_young(ptent) || PageReferenced(page))
|
|
mss->referenced += PAGE_SIZE;
|
|
mss->referenced += PAGE_SIZE;
|