summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHongfu Li <lihongfu@kylinos.cn>2026-08-19 17:51:43 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-10-06 17:38:42 -0700
commit51216825099e36bf9d39de375749d8365556c5fc (patch)
tree0f1dd6f4de0dfb81064f854084b7353b98056f79 /scripts
parentff47652a4b66c067c765a7ad464d930b5a9367cc (diff)
mm: use a folio in the softleaf_is_device_private path
Use the folio APIs in the device_private migration path of do_swap_page(), replacing four calls to compound_head() with two page_folio() calls. The second one re-fetches the folio from vmf->page after migrate_to_ram(), which might have split the folio. Link: https://lore.kernel.org/20260819095144.45660-1-hongfu.li@linux.dev Signed-off-by: Hongfu Li <lihongfu@kylinos.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Suggested-by: David Hildenbrand (Arm) <david@kernel.org> Link: https://lore.kernel.org/all/e20678ed-3fa1-4677-a1d7-e2af481e8302@kernel.org/ Acked-by: David Hildenbrand (Arm) <david@kernel.org> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Liam R. Howlett <liam@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions