vmm: fix destroyrange shared file unmapping

This commit is contained in:
Matheus
2024-06-08 14:03:27 -03:00
parent ea5e53ff91
commit 13b142a91e
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -133,6 +133,7 @@ void pmm_release(void *addr) {
uintmax_t newrefcount = __atomic_sub_fetch(&page->refcount, 1, __ATOMIC_SEQ_CST);
if (newrefcount == 0) {
__assert((page->flags & PAGE_FLAGS_DIRTY) == 0);
MUTEX_ACQUIRE(&freelistmutex, false);
insertinfreelist(page);
if (page->backing == NULL)