Kernel: Fix dirty page map bitmap

We also need to check against the new lazy allocation page
when generating the dirty page bitmap.
This commit is contained in:
Tom 2021-01-01 16:08:59 -07:00 committed by Andreas Kling
parent e87eaf5df0
commit a1904b67e9

View file

@ -348,7 +348,7 @@ static OwnPtr<KBuffer> procfs$pid_vm(InodeIdentifier identifier)
auto* page = region.physical_page(i);
if (!page)
pagemap_builder.append('N');
else if (page->is_shared_zero_page())
else if (page->is_shared_zero_page() || page->is_lazy_committed_page())
pagemap_builder.append('Z');
else
pagemap_builder.append('P');