fix: obtain correct page table entry when performing eviction
This commit is contained in:
@@ -37,7 +37,7 @@ struct page_entry *page_insert_swapped (void *upage, void* kpage,
|
||||
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);
|
||||
struct page_entry *page_get (void *upage);
|
||||
struct page_entry *page_get (struct thread *thread, void *upage);
|
||||
bool page_load_file (struct page_entry *page, bool writable);
|
||||
void page_cleanup (struct hash_elem *e, void *aux);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user