diff options
| author | Kefeng Wang <[email protected]> | 2024-05-21 21:03:15 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-04 18:05:50 -0700 |
| commit | 593a10dabe08dcf93259fce2badd8dc2528859a8 (patch) | |
| tree | 427c82d0d3b5ae47addb1a837061123bef728f73 /tools/perf/scripts/python | |
| parent | 8bf890c8161215bd1fbd1a6d9b61acbb8eac165b (diff) | |
mm: refactor folio_undo_large_rmappable()
Folios of order <= 1 are not in deferred list, the check of order is added
into folio_undo_large_rmappable() from commit 8897277acfef ("mm: support
order-1 folios in the page cache"), but there is a repeated check for
small folio (order 0) during each call of the
folio_undo_large_rmappable(), so only keep folio_order() check inside the
function.
In addition, move all the checks into header file to save a function call
for non-large-rmappable or empty deferred_list folio.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kefeng Wang <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Vishal Moola (Oracle) <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Lance Yang <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Shakeel Butt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions