diff options
| author | Joao Martins <[email protected]> | 2022-04-28 23:16:15 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-28 23:16:15 -0700 |
| commit | 2beea70a3edc03608ecc89b13ba9ba669c56b3fd (patch) | |
| tree | 223e67c2b67d6cbd954dbb2157c9450af7542b98 /tools/perf | |
| parent | e3246d8f52173a798710314a42fea83223036fc8 (diff) | |
mm/sparse-vmemmap: refactor core of vmemmap_populate_basepages() to helper
In preparation for describing a memmap with compound pages, move the
actual pte population logic into a separate function
vmemmap_populate_address() and have a new helper vmemmap_populate_range()
walk through all base pages it needs to populate.
While doing that, change the helper to use a pte_t* as return value,
rather than an hardcoded errno of 0 or -ENOMEM.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Joao Martins <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Jane Chu <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Vishal Verma <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions