mm/memory.c: use folios in __copy_remote_vm_str()
authorVishal Moola (Oracle) <vishal.moola@gmail.com>
Wed, 9 Jul 2025 19:40:16 +0000 (12:40 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:51 +0000 (18:59 -0700)
commit0ec5eea20821287d9d9d4ec477f7cd0e15315518
treeb6733fd0be803d3536bce20df68d458310374702
parentdb87a4e236424249c7def768ba50b88699af2c0d
mm/memory.c: use folios in __copy_remote_vm_str()

Patch series "Remove unmap_and_put_page()".

This patchset uses folios in both the callers of unmap_and_put_page(),
saving a couple calls to compound_head() wrappers.

This patch (of 3):

Use kmap_local_folio() instead of kmap_local_page().  Replaces 2 calls to
compound_head() from unmap_and_put_page() with one.

This prepares us for the removal of unmap_and_put_page().

Link: https://lkml.kernel.org/r/20250709194017.927978-3-vishal.moola@gmail.com
Link: https://lkml.kernel.org/r/20250709194017.927978-4-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Jordan Rome <linux@jordanrome.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c