]> 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>
Tue, 8 Mar 2022 18:19:10 +0000 (13:19 -0500)
commitf0d407e92cf2f2ed57f141a3b210ab1c253a8577
tree2d8e8173022a3fbde9f9a784f86c181d69670289
parent4602a4fabec1d1388aa64d40a91309112b245788
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