Lines Matching refs:prev

50 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev)  in __vma_link_list()  argument
53 vma->vm_prev = prev; in __vma_link_list()
54 if (prev) // 若指定了前一个结点,则直接连接 in __vma_link_list()
56 next = prev->vm_next; in __vma_link_list()
57 prev->vm_next = vma; in __vma_link_list()
79 struct vm_area_struct *prev, *next; in __vma_unlink_list() local
81 prev = vma->vm_prev; in __vma_unlink_list()
82 if (prev) in __vma_unlink_list()
83 prev->vm_next = next; in __vma_unlink_list()
88 next->vm_prev = prev; in __vma_unlink_list()
124 struct vm_area_struct *prev; in vma_insert() local
126 prev = vma_find(mm, vma->vm_start); in vma_insert()
128 if (prev && prev->vm_start <= vma->vm_start && prev->vm_end >= vma->vm_end) in vma_insert()
134 …else if (prev && ((vma->vm_start >= prev->vm_start && vma->vm_start <= prev->vm_end) || (prev->vm_… in vma_insert()
137 …if ((!CROSS_2M_BOUND(vma->vm_start, prev->vm_start)) && (!CROSS_2M_BOUND(vma->vm_end, prev->vm_end… in vma_insert()
142 prev->vm_start = (vma->vm_start < prev->vm_start )? vma->vm_start : prev->vm_start; in vma_insert()
143 prev->vm_end = (vma->vm_end > prev->vm_end) ? vma->vm_end : prev->vm_end; in vma_insert()
145 prev->page_offset = prev->vm_start - (prev->vm_start & PAGE_2M_MASK); in vma_insert()
146 …v:vm_start = %018lx, vm_end = %018lx\n", vma->vm_start, vma->vm_end, prev->vm_start, prev->vm_end); in vma_insert()
154 if (prev == NULL) // 要将当前vma插入到链表的尾部 in vma_insert()
163 prev = ptr; in vma_insert()
169 prev = prev->vm_prev; in vma_insert()
170 __vma_link_list(mm, vma, prev); in vma_insert()