Skip to content

Commit

Permalink
[PATCH] smaps: hugepages fix
Browse files Browse the repository at this point in the history
smaps doesn't have a hugepage pagetable walker. Skip walking hugepage
vmas.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Mar 7, 2006
1 parent ecbd3a6 commit 5ddfae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/task_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ static int show_smap(struct seq_file *m, void *v)
struct mem_size_stats mss;

memset(&mss, 0, sizeof mss);
if (vma->vm_mm)
if (vma->vm_mm && !is_vm_hugetlb_page(vma))
smaps_pgd_range(vma, vma->vm_start, vma->vm_end, &mss);
return show_map_internal(m, v, &mss);
}
Expand Down

0 comments on commit 5ddfae1

Please sign in to comment.