forked from Minki/linux
[PATCH] smaps: hugepages fix
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>
This commit is contained in:
parent
ecbd3a632c
commit
5ddfae16bd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user