diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2011-10-31 20:06:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:44 -0400 |
commit | fc360bd9cdcf875639a77f07fafec26699c546f3 (patch) | |
tree | eb4ee71bafa392d48b3fb630bd4a9baa48104332 /fs | |
parent | 6eea69dd8befeabd3d0f217400f54b157dd91fe9 (diff) |
/proc/self/numa_maps: restore "huge" tag for hugetlb vmas
The display of the "huge" tag was accidentally removed in 29ea2f698 ("mm:
use walk_page_range() instead of custom page table walking code").
Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Stephen Hemminger <shemminger@vyatta.com>
Reviewed-by: Stephen Wilson <wilsons@start.ca>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: <stable@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/task_mmu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 5afaa58a8630..c7d4ee663f14 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -1039,6 +1039,9 @@ static int show_numa_map(struct seq_file *m, void *v) | |||
1039 | seq_printf(m, " stack"); | 1039 | seq_printf(m, " stack"); |
1040 | } | 1040 | } |
1041 | 1041 | ||
1042 | if (is_vm_hugetlb_page(vma)) | ||
1043 | seq_printf(m, " huge"); | ||
1044 | |||
1042 | walk_page_range(vma->vm_start, vma->vm_end, &walk); | 1045 | walk_page_range(vma->vm_start, vma->vm_end, &walk); |
1043 | 1046 | ||
1044 | if (!md->pages) | 1047 | if (!md->pages) |