We are ignoring the unused pages anyway, so there is no good in
reporting them.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
struct bintree_ops ops;
long int pages_present;
long int pages_swapped;
struct bintree_ops ops;
long int pages_present;
long int pages_swapped;
- if (pf->page_present) {
- } else if (pf->page_swapped) {
+ else if (pf->page_swapped)
- } else {
- af->pages_unused++;
- }
count = bintree_walk(&pf->tree, &af.ops);
printf("present pages: %ld, %lld %sB\n"
"Swapped pages: %ld, %lld %sB\n"
count = bintree_walk(&pf->tree, &af.ops);
printf("present pages: %ld, %lld %sB\n"
"Swapped pages: %ld, %lld %sB\n"
- "Unused pages: %ld, %lld %sB\n"
"Total %ld physical pages, %lld %sB\n",
af.pages_present,
PAGE_TO_NICE(af.pages_present),
"Total %ld physical pages, %lld %sB\n",
af.pages_present,
PAGE_TO_NICE(af.pages_present),
af.pages_swapped,
PAGE_TO_NICE(af.pages_swapped),
PAGE_TO_NICE_UNIT(af.pages_swapped),
af.pages_swapped,
PAGE_TO_NICE(af.pages_swapped),
PAGE_TO_NICE_UNIT(af.pages_swapped),
- af.pages_unused,
- PAGE_TO_NICE(af.pages_unused),
- PAGE_TO_NICE_UNIT(af.pages_unused),
count,
PAGE_TO_NICE(count),
PAGE_TO_NICE_UNIT(count));
count,
PAGE_TO_NICE(count),
PAGE_TO_NICE_UNIT(count));