From: Liam R. Howlett Date: Tue, 13 Dec 2022 20:24:45 +0000 (-0500) Subject: mm/damon: Stop using vma_mas_store() for maple tree store X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e29178ebf94aee28f1ac511526e51b97d51586a6;p=users%2Fjedix%2Flinux-maple.git mm/damon: Stop using vma_mas_store() for maple tree store Prepare for the removal of the vma_mas_store() function by open coding the maple tree store in this test code. Set the range of the maple state and call the store function directly. Cc: SeongJae Park Reported-by: kernel test robot Signed-off-by: Liam R. Howlett --- diff --git a/mm/damon/vaddr-test.h b/mm/damon/vaddr-test.h index bce37c487540..41532f7355d0 100644 --- a/mm/damon/vaddr-test.h +++ b/mm/damon/vaddr-test.h @@ -24,8 +24,10 @@ static void __link_vmas(struct maple_tree *mt, struct vm_area_struct *vmas, return; mas_lock(&mas); - for (i = 0; i < nr_vmas; i++) - vma_mas_store(&vmas[i], &mas); + for (i = 0; i < nr_vmas; i++) { + mas_set_range(&mas, vmas[i].vm_start, vmas[i].vm_end - 1); + mas_store_gfp(&mas, &vmas[i], GFP_KERNEL); + } mas_unlock(&mas); }