diff options
| author | David Hildenbrand <david@redhat.com> | 2025-02-26 16:22:55 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-03-17 10:05:30 +0300 |
| commit | 248624f9c6b454c352fd7a95921706e489ae990f (patch) | |
| tree | c94f2d3fb1589e50630a6f61f6daceed69f929d0 /include/linux | |
| parent | db0f6e674c2b61ff9d8880e7ae5ed11681fe9651 (diff) | |
| download | linux-248624f9c6b454c352fd7a95921706e489ae990f.tar.xz | |
mm/memory: pass folio and pte to restore_exclusive_pte()
Let's pass the folio and the pte to restore_exclusive_pte(), so we can
avoid repeated page_folio() and ptep_get(). To do that, pass the pte to
try_restore_exclusive_pte() and use a folio in there already.
While at it, just avoid the "swp_entry_t entry" variable in
try_restore_exclusive_pte() and add a folio-locked check to
restore_exclusive_pte().
Link: https://lkml.kernel.org/r/20250226132257.2826043-4-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
