aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/maple.c
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2025-04-09 17:00:20 -0700
committerAndrew Morton <akpm@linux-foundation.org>2025-05-11 17:48:27 -0700
commit01bef02bf9301ea6c255b0daa38356e07719dd69 (patch)
treea86be65236a02978ca3477d73e497c3678f4a176 /tools/testing/radix-tree/maple.c
parentmm/madvise: define and use madvise_behavior struct for madvise_do_behavior() (diff)
downloadlinux-01bef02bf9301ea6c255b0daa38356e07719dd69.tar.gz
linux-01bef02bf9301ea6c255b0daa38356e07719dd69.zip
mm/madvise: batch tlb flushes for MADV_FREE
MADV_FREE handling for [process_]madvise() flushes tlb for each vma of each address range. Update the logic to do tlb flushes in a batched way. Initialize an mmu_gather object from do_madvise() and vector_madvise(), which are the entry level functions for [process_]madvise(), respectively. And pass those objects to the function for per-vma work, via madvise_behavior struct. Make the per-vma logic not flushes tlb on their own but just saves the tlb entries to the received mmu_gather object. Finally, the entry level functions flush the tlb entries that gathered for the entire user request, at once. Link: https://lkml.kernel.org/r/20250410000022.1901-3-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/testing/radix-tree/maple.c')
0 files changed, 0 insertions, 0 deletions