vma_intersect() was erroneous, replaced by a nice and simple set_intersection() routine.

Still testing sys_munmap(). It now correctly spots and unmaps the overlapping vma.
The issue now is that if a split occurs, we forgot to add same objects to new vma.
This commit is contained in:
Bahadir Balban
2008-11-07 20:13:28 +02:00
parent 93ca3f88a8
commit 61751a896b
4 changed files with 24 additions and 20 deletions

View File

@@ -183,8 +183,6 @@ struct vm_area {
unsigned long file_offset; /* File offset in pfns */
};
int vma_intersect(unsigned long pfn_start, unsigned long pfn_end,
struct vm_area *vma);
/*
* Finds the vma that has the given address.
* TODO: In the future a lot of use cases may need to traverse each vma