The pagemap data read from the file might contain only the page shift
field, nothing else. That kind of pages are really not useful, so they
can be skipped.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
pageframe_to_struct(pf[ret / sizeof(pf[0])], pageframe);
+ /* ignore unused pages */
+ if (!(pageframe->page_swapped ||
+ pageframe->page_present))
+ continue;
+
if (check_parse_opts(opts, pageframe, map)) {
match = tree_to_pageframe(
bintree_add(&pf_tree->tree,