Skip to content

Commit 8f19b0c

Browse files
yhuang-inteltorvalds
authored andcommitted
thp: fix comments of __pmd_trans_huge_lock()
To make the comments consistent with the already changed code. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: "Huang, Ying" <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent cb773df commit 8f19b0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mm/huge_memory.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,10 +1458,10 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
14581458
}
14591459

14601460
/*
1461-
* Returns true if a given pmd maps a thp, false otherwise.
1461+
* Returns page table lock pointer if a given pmd maps a thp, NULL otherwise.
14621462
*
1463-
* Note that if it returns true, this routine returns without unlocking page
1464-
* table lock. So callers must unlock it.
1463+
* Note that if it returns page table lock pointer, this routine returns without
1464+
* unlocking page table lock. So callers must unlock it.
14651465
*/
14661466
spinlock_t *__pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma)
14671467
{

0 commit comments

Comments
 (0)