fix: always add to frame owners when installing existing shared page.

This commit is contained in:
2024-12-06 15:23:41 +00:00
parent d389c15828
commit 4104d2c852

View File

@@ -199,11 +199,7 @@ page_load_file (struct page_entry *page)
lock_release (&shared_file_pages_lock);
return false;
}
/* First time adding the shared page, so add thread as owner. */
if (page->type != PAGE_SHARED)
{
frame_owner_insert (sfp->frame, t);
}
frame_owner_insert (sfp->frame, t);
}
/* Shared page is in swap. Load it. */
else