Skip to content

Commit 9651eea

Browse files
Kemeng Shiakpm00
authored andcommitted
mm: correct stale comment of function check_pte
Commit 2aff7a4 ("mm: Convert page_vma_mapped_walk to work on PFNs") replaced page with pfns in page_vma_mapped_walk structure and updated "@pvmw->page" to "@pvmw->pfn" in comment of function page_vma_mapped_walk. This patch update stale "page" to "pfn" in comment of check_pte. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kemeng Shi <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent b4fa966 commit 9651eea

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

mm/page_vma_mapped.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,22 @@ static bool map_pte(struct page_vma_mapped_walk *pvmw, spinlock_t **ptlp)
7373
}
7474

7575
/**
76-
* check_pte - check if @pvmw->page is mapped at the @pvmw->pte
77-
* @pvmw: page_vma_mapped_walk struct, includes a pair pte and page for checking
76+
* check_pte - check if [pvmw->pfn, @pvmw->pfn + @pvmw->nr_pages) is
77+
* mapped at the @pvmw->pte
78+
* @pvmw: page_vma_mapped_walk struct, includes a pair pte and pfn range
79+
* for checking
7880
*
79-
* page_vma_mapped_walk() found a place where @pvmw->page is *potentially*
81+
* page_vma_mapped_walk() found a place where pfn range is *potentially*
8082
* mapped. check_pte() has to validate this.
8183
*
8284
* pvmw->pte may point to empty PTE, swap PTE or PTE pointing to
8385
* arbitrary page.
8486
*
8587
* If PVMW_MIGRATION flag is set, returns true if @pvmw->pte contains migration
86-
* entry that points to @pvmw->page or any subpage in case of THP.
88+
* entry that points to [pvmw->pfn, @pvmw->pfn + @pvmw->nr_pages)
8789
*
8890
* If PVMW_MIGRATION flag is not set, returns true if pvmw->pte points to
89-
* pvmw->page or any subpage in case of THP.
91+
* [pvmw->pfn, @pvmw->pfn + @pvmw->nr_pages)
9092
*
9193
* Otherwise, return false.
9294
*

0 commit comments

Comments
 (0)