]> err.no Git - linux-2.6/commitdiff
[PATCH] smaps: hugepages fix
authorNick Piggin <nickpiggin@yahoo.com.au>
Mon, 6 Mar 2006 23:42:57 +0000 (15:42 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 02:40:45 +0000 (18:40 -0800)
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>
fs/proc/task_mmu.c

index 0eaad41f4658f3f4eaaf526078dafa24e1ec0094..35787f907f1290c6982759e084d87c5b601cc6c5 100644 (file)
@@ -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);
 }