Home
last modified time | relevance | path

Searched refs:first_gap (Results 1 – 1 of 1) sorted by relevance

/linux/mm/damon/
H A Dvaddr.c119 struct damon_addr_range first_gap = {0}, second_gap = {0}; in __damon_va_three_regions() local
139 if (gap > sz_range(&first_gap)) { in __damon_va_three_regions()
140 second_gap = first_gap; in __damon_va_three_regions()
141 first_gap.start = prev->vm_end; in __damon_va_three_regions()
142 first_gap.end = vma->vm_start; in __damon_va_three_regions()
152 if (!sz_range(&second_gap) || !sz_range(&first_gap)) in __damon_va_three_regions()
156 if (first_gap.start > second_gap.start) in __damon_va_three_regions()
157 swap(first_gap, second_gap); in __damon_va_three_regions()
161 regions[0].end = ALIGN(first_gap.start, DAMON_MIN_REGION); in __damon_va_three_regions()
162 regions[1].start = ALIGN(first_gap.end, DAMON_MIN_REGION); in __damon_va_three_regions()