Split vmas had no objects. Now fixed.

When sys_munmap() splits a vma, the new vma had no copy of the objects
in the original vma. Now we fixed that using a vma_copy_links() function
which can also be used as part of fork().
This commit is contained in:
Bahadir Balban
2008-11-07 20:39:11 +02:00
parent 61751a896b
commit daffc1d084
4 changed files with 37 additions and 19 deletions

View File

@@ -252,6 +252,7 @@ static inline void task_add_vma(struct tcb *task, struct vm_area *vma)
/* Main page fault entry point */
int page_fault_handler(struct tcb *faulty_task, fault_kdata_t *fkdata);
int vma_copy_links(struct vm_area *new_vma, struct vm_area *vma);
int vma_drop_merge_delete(struct vm_area *vma, struct vm_obj_link *link);
int vma_drop_merge_delete_all(struct vm_area *vma);