diff options
author | David Hildenbrand <david@redhat.com> | 2023-10-02 17:29:49 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-19 00:34:14 +0300 |
commit | dec078cc2181fccf8b134406b86aaacc19f7163f (patch) | |
tree | dfbf376b2b90448054f106fbea336bf289938bf2 /mm/migrate.c | |
parent | 069686255c16a75b6a796e42df47f5af27b496a4 (diff) | |
download | linux-dec078cc2181fccf8b134406b86aaacc19f7163f.tar.xz |
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/20231002142949.235104-4-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/migrate.c')
0 files changed, 0 insertions, 0 deletions