summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2022-03-22 22:42:24 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-22 23:57:04 +0100
commit8018db8525947c2eeb9990a27ca0a50eecbfcd41 (patch)
tree1b079e9c36597a1bec6183160ad04215268671ce /mm/mmap.c
parentmm: change zap_details.zap_mapping into even_cows (diff)
downloadlinux-8018db8525947c2eeb9990a27ca0a50eecbfcd41.tar.xz
linux-8018db8525947c2eeb9990a27ca0a50eecbfcd41.zip
mm: rework swap handling of zap_pte_range
Clean the code up by merging the device private/exclusive swap entry handling with the rest, then we merge the pte clear operation too. struct* page is defined in multiple places in the function, move it upward. free_swap_and_cache() is only useful for !non_swap_entry() case, put it into the condition. No functional change intended. Link: https://lkml.kernel.org/r/20220216094810.60572-5-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: John Hubbard <jhubbard@nvidia.com> Cc: David Hildenbrand <david@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: "Kirill A . Shutemov" <kirill@shutemov.name> Cc: Matthew Wilcox <willy@infradead.org> Cc: Yang Shi <shy828301@gmail.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Alistair Popple <apopple@nvidia.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions