[PATCH] numa_maps: Fix potential crash on non IA64 platforms

numa_maps should not scan over huge vmas in order not to cause problems for
non IA64 platforms that may have pte entries pointing to huge pages in a
variety of ways in their page tables. Add a simple check to ignore vmas
containing huge pages.

Signed-off-by: Christoph Lameter <clameter@engr.sgi.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Christoph Lameter and committed by Linus Torvalds a57ebfdb 685db65e

+2 -1
+2 -1
mm/mempolicy.c
··· 1793 if (!md) 1794 return 0; 1795 1796 - check_pgd_range(vma, vma->vm_start, vma->vm_end, 1797 &node_online_map, MPOL_MF_STATS, md); 1798 1799 if (md->pages) {
··· 1793 if (!md) 1794 return 0; 1795 1796 + if (!is_vm_hugetlb_page(vma)) 1797 + check_pgd_range(vma, vma->vm_start, vma->vm_end, 1798 &node_online_map, MPOL_MF_STATS, md); 1799 1800 if (md->pages) {