Skip to content

Commit dd78553

Browse files
kosakitorvalds
authored andcommitted
pagewalk: fix code comment for THP
Commit bae9c19 ("thp: split_huge_page_mm/vma") changed locking behavior of walk_page_range(). Thus this patch changes the comment too. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Hiroyuki Kamezawa <kamezawa.hiroyuki@gmail.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c27fe4c commit dd78553

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎mm/pagewalk.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ static int walk_hugetlb_range(struct vm_area_struct *vma,
176176
* associated range, and a copy of the original mm_walk for access to
177177
* the ->private or ->mm fields.
178178
*
179-
* No locks are taken, but the bottom level iterator will map PTE
179+
* Usually no locks are taken, but splitting transparent huge page may
180+
* take page table lock. And the bottom level iterator will map PTE
180181
* directories from highmem if necessary.
181182
*
182183
* If any callback returns a non-zero value, the walk is aborted and

0 commit comments

Comments
 (0)