diff options
| author | Barry Song <[email protected]> | 2024-02-27 23:42:01 +1300 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-03-06 13:04:18 -0800 |
| commit | ac96cc4d1ceda01d08deda1e45b9f1b55b0624d2 (patch) | |
| tree | c81cbf098c342a8df2539e34d90ccfd72a76b467 /tools/perf/scripts/python | |
| parent | 9164448d3100d5118bda5e9d38b69a9f32cea509 (diff) | |
mm: make folio_pte_batch available outside of mm/memory.c
madvise, mprotect and some others might need folio_pte_batch to check if a
range of PTEs are completely mapped to a large folio with contiguous
physical addresses. Let's make it available in mm/internal.h.
While at it, add proper kernel doc and sanity-check more input parameters
using two additional VM_WARN_ON_FOLIO().
[[email protected]: build fix]
Link: https://lkml.kernel.org/r/CAGsJ_4wWzG-37D82vqP_zt+Fcbz+URVe5oXLBc4M5wbN8A_gpQ@mail.gmail.com
[[email protected]: improve the doc for the exported func]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Signed-off-by: Barry Song <[email protected]>
Suggested-by: David Hildenbrand <[email protected]>
Reviewed-by: Ryan Roberts <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Lance Yang <[email protected]>
Cc: Yin Fengwei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions