aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/task_mmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index 7e5e7ec2e36d..d2fa42006d8f 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -419,7 +419,6 @@ static struct numa_maps *get_numa_maps(const struct vm_area_struct *vma)
419 for_each_node(i) 419 for_each_node(i)
420 md->node[i] =0; 420 md->node[i] =0;
421 421
422 spin_lock(&mm->page_table_lock);
423 for (vaddr = vma->vm_start; vaddr < vma->vm_end; vaddr += PAGE_SIZE) { 422 for (vaddr = vma->vm_start; vaddr < vma->vm_end; vaddr += PAGE_SIZE) {
424 page = follow_page(mm, vaddr, 0); 423 page = follow_page(mm, vaddr, 0);
425 if (page) { 424 if (page) {
@@ -434,8 +433,8 @@ static struct numa_maps *get_numa_maps(const struct vm_area_struct *vma)
434 md->anon++; 433 md->anon++;
435 md->node[page_to_nid(page)]++; 434 md->node[page_to_nid(page)]++;
436 } 435 }
436 cond_resched();
437 } 437 }
438 spin_unlock(&mm->page_table_lock);
439 return md; 438 return md;
440} 439}
441 440