aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/maple.c
diff options
context:
space:
mode:
authorSeongJae Park <[email protected]>2025-04-10 00:00:22 +0000
committerAndrew Morton <[email protected]>2025-05-12 00:48:27 +0000
commit43c4cfde7e37460482e41dbb6837d4bff290d2cc (patch)
tree5e96c4d62cb115c0f3be8b2fc399e568cdf3c396 /tools/testing/radix-tree/maple.c
parentmm/memory: split non-tlb flushing part from zap_page_range_single() (diff)
downloadkernel-43c4cfde7e37460482e41dbb6837d4bff290d2cc.tar.gz
kernel-43c4cfde7e37460482e41dbb6837d4bff290d2cc.zip
mm/madvise: batch tlb flushes for MADV_DONTNEED[_LOCKED]
MADV_DONTNEED[_LOCKED] 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. For this internal logic change, make zap_page_range_single_batched() non-static and use it directly from madvise_dontneed_single_vma(). Finally, the entry level functions flush the tlb entries that gathered for the entire user request, at once. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: SeongJae Park <[email protected]> Reviewed-by: Lorenzo Stoakes <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/maple.c')
0 files changed, 0 insertions, 0 deletions