fix: synchronise pagedir which now may be accessed by other threads, with a lock

This commit is contained in:
2024-12-06 18:22:00 +00:00
parent 77fedd6666
commit ce89d3577f
8 changed files with 78 additions and 26 deletions

View File

@@ -49,7 +49,8 @@ struct shared_file_page
};
bool init_pages (struct hash *pages);
bool page_insert_swapped (void *upage, void *kpage, struct list *owners);
bool page_insert_swapped (void *upage, void *kpage, struct list *owners,
struct thread *cur);
struct page_entry *page_insert_file (struct file *file, off_t ofs, void *upage,
uint32_t read_bytes, uint32_t zero_bytes,
bool writable, enum page_type);