Kernel: Improve crash info if page_in_from_inode() is called redundantly.

This commit is contained in:
Andreas Kling 2019-02-03 02:49:59 +01:00
parent c63d476da2
commit 3eeff0dd14
Notes: sideshowbarker 2024-07-19 15:53:33 +09:00

View file

@ -304,7 +304,10 @@ bool MemoryManager::page_in_from_inode(Region& region, unsigned page_index_in_re
auto& vmo_page = vmo.physical_pages()[region.first_page_index() + page_index_in_region];
ASSERT(vmo_page.is_null());
if (!vmo_page.is_null()) {
dbgprintf("MM: Redundant page_in_from_inode in %s(%u), inode=%u, [%u]\n", current->name().characters(), current->pid(), region.vmo().inode()->identifier().index(), page_index_in_region);
ASSERT_NOT_REACHED();
}
bool interrupts_were_enabled = are_interrupts_enabled();