mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
mm: rename page->index to page->__folio_index
All users of page->index have been converted to not refer to it any more. Update a few pieces of documentation that were missed and prevent new users from appearing (or at least make them easy to grep for). Link: https://lkml.kernel.org/r/20250514181508.3019795-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
e94715982c
commit
acc53a0b4c
@@ -4668,8 +4668,8 @@ vm_fault_t do_swap_page(struct vm_fault *vmf)
|
||||
|
||||
/*
|
||||
* KSM sometimes has to copy on read faults, for example, if
|
||||
* page->index of !PageKSM() pages would be nonlinear inside the
|
||||
* anon VMA -- PageKSM() is lost on actual swapout.
|
||||
* folio->index of non-ksm folios would be nonlinear inside the
|
||||
* anon VMA -- the ksm flag is lost on actual swapout.
|
||||
*/
|
||||
folio = ksm_might_need_to_copy(folio, vma, vmf->address);
|
||||
if (unlikely(!folio)) {
|
||||
|
||||
Reference in New Issue
Block a user