diff options
| author | SeongJae Park <[email protected]> | 2025-04-10 00:00:20 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-12 00:48:27 +0000 |
| commit | 01bef02bf9301ea6c255b0daa38356e07719dd69 (patch) | |
| tree | a86be65236a02978ca3477d73e497c3678f4a176 /tools/testing/radix-tree/maple.c | |
| parent | mm/madvise: define and use madvise_behavior struct for madvise_do_behavior() (diff) | |
| download | kernel-01bef02bf9301ea6c255b0daa38356e07719dd69.tar.gz kernel-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/[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
