diff options
| author | Vishal Moola (Oracle) <[email protected]> | 2022-08-23 17:40:22 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:26:03 -0700 |
| commit | 60aac486daa48d9caa9370d480d890f2a1f71742 (patch) | |
| tree | 5525724591dea6d4f3e483c6c891f13bb003b407 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 24a1efb4a91283c853a31fa4775d5c10c09129a4 (diff) | |
ramfs: convert ramfs_nommu_get_unmapped_area() to use filemap_get_folios_contig()
Convert to use folios throughout. This is in preparation for the removal
for find_get_pages_contig(). Now also supports large folios.
The initial version of this function set the page_address to be returned
after finishing all the checks. Since folio_batches have a maximum of 15
folios, the function had to be modified to support getting and checking up
to lpages, 15 pages at a time while still returning the initial page
address. Now the function sets ret as soon as the first batch arrives,
and updates it only if a check fails.
The physical adjacency check utilizes the page frame numbers. The page
frame number of each folio must be nr_pages away from the first folio.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Vishal Moola (Oracle) <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Chris Mason <[email protected]>
Cc: David Sterba <[email protected]>
Cc: David Sterba <[email protected]>
Cc: Josef Bacik <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions