Commit c69307d5 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched/numa: Fix comments

Fix a 80 column violation and a PTE vs PMD reference.
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarMel Gorman <mgorman@suse.de>
Reviewed-by: default avatarRik van Riel <riel@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1381141781-10992-4-git-send-email-mgorman@suse.deSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 10fc05d0
...@@ -988,10 +988,10 @@ void task_numa_work(struct callback_head *work) ...@@ -988,10 +988,10 @@ void task_numa_work(struct callback_head *work)
out: out:
/* /*
* It is possible to reach the end of the VMA list but the last few VMAs are * It is possible to reach the end of the VMA list but the last few
* not guaranteed to the vma_migratable. If they are not, we would find the * VMAs are not guaranteed to the vma_migratable. If they are not, we
* !migratable VMA on the next scan but not reset the scanner to the start * would find the !migratable VMA on the next scan but not reset the
* so check it now. * scanner to the start so check it now.
*/ */
if (vma) if (vma)
mm->numa_scan_offset = start; mm->numa_scan_offset = start;
......
...@@ -1305,7 +1305,7 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, ...@@ -1305,7 +1305,7 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
spin_unlock(&mm->page_table_lock); spin_unlock(&mm->page_table_lock);
lock_page(page); lock_page(page);
/* Confirm the PTE did not while locked */ /* Confirm the PMD did not change while page_table_lock was released */
spin_lock(&mm->page_table_lock); spin_lock(&mm->page_table_lock);
if (unlikely(!pmd_same(pmd, *pmdp))) { if (unlikely(!pmd_same(pmd, *pmdp))) {
unlock_page(page); unlock_page(page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment