]> www.infradead.org Git - users/jedix/linux-maple.git/commit
damon: Convert __damon_va_three_regions to use the VMA iterator
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 28 Oct 2021 18:39:28 +0000 (14:39 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 11 Feb 2022 03:38:06 +0000 (22:38 -0500)
commit3396339d6deb4f3447a81a5e944b6764c98b3f6b
treefe3f7c068df489c78bb3f5f813fcf63b8be21495
parent491d0facb812315490aafbba9dddb7f1c393b44f
damon: Convert __damon_va_three_regions to use the VMA iterator

This rather specialised walk can use the VMA iterator.  If this proves
to be too slow, we can write a custom routine to find the two largest
gaps, but it will be somewhat complicated, so let's see if we need it
first.

Update the kunit test case to use the maple tree.  This also fixes an
issue with the kunit testcase not adding the last VMA to the list.

Fixes: 17ccae8bb5c9 (mm/damon: add kunit tests)
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/damon/vaddr-test.h
mm/damon/vaddr.c