Commit af12346c authored by Committed by Linus TorvaldsBrowse files
mm/vmalloc: revert "mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead of show_numa_info"
The VM_UNINITIALIZED/VM_UNLIST flag introduced by f5252e00 ("mm: avoid null pointer access in vm_struct via /proc/vmallocinfo") is used to avoid accessing the pages field with unallocated page when show_numa_info() is called. This patch moves the check just before show_numa_info in order that some messages still can be dumped via /proc/vmallocinfo. This patch reverts commit d157a558 ("mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead of show_numa_info"); Reviewed-by: Zhang Yanfei <firstname.lastname@example.org> Signed-off-by: Wanpeng Li <email@example.com> Cc: Mitsuo Hayasaka <firstname.lastname@example.org> Cc: Joonsoo Kim <email@example.com> Cc: KOSAKI Motohiro <firstname.lastname@example.org> Cc: David Rientjes <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Showing with 5 additions and 5 deletions