1) uml kernel bootmem managed through bootmem_data->node_bootmem_map, not the struct page array, so the array is unnecessary. 2) the bootmem struct page array has been pointed by a *local* pointer, struct page *map, in init_maps function. The array can be accessed only in init_maps's scope. As a result, uml kernel wastes about 1% of total memory. Signed-off-by: Honggang Li <enjoymindful@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at> |
||
|---|---|---|
| .. | ||
| skas | ||
| aio.h | ||
| arch.h | ||
| as-layout.h | ||
| common-offsets.h | ||
| elf_user.h | ||
| frame_kern.h | ||
| init.h | ||
| irq_kern.h | ||
| irq_user.h | ||
| kern.h | ||
| kern_util.h | ||
| longjmp.h | ||
| mem.h | ||
| mem_user.h | ||
| net_kern.h | ||
| net_user.h | ||
| os.h | ||
| ptrace_user.h | ||
| registers.h | ||
| sigio.h | ||
| skas_ptrace.h | ||
| um_malloc.h | ||
| user.h | ||