diff options
| author | David Hildenbrand <[email protected]> | 2023-10-02 16:29:49 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-10-18 14:34:14 -0700 |
| commit | dec078cc2181fccf8b134406b86aaacc19f7163f (patch) | |
| tree | dfbf376b2b90448054f106fbea336bf289938bf2 /tools/perf/scripts/python | |
| parent | 069686255c16a75b6a796e42df47f5af27b496a4 (diff) | |
memory: move exclusivity detection in do_wp_page() into wp_can_reuse_anon_folio()
Let's clean up do_wp_page() a bit, removing two labels and making it a
easier to read.
wp_can_reuse_anon_folio() now only operates on the whole folio. Move the
SetPageAnonExclusive() out into do_wp_page(). No need to do this under
page lock -- the page table lock is sufficient.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions