um: delete unnecessary bootmem struct page array
authorHonggang Li <enjoymindful@gmail.com>
Tue, 3 Jun 2014 05:30:45 +0000 (13:30 +0800)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Oct 2014 15:15:09 +0000 (17:15 +0200)
commit9e6a57d2cdee36a6d9c5d5cc3db85713dd416719
treecf8fc0074fd53202b6eb552010326ecc58aa7671
parent671312304ec73059a0128ff3ac7a5ced459098ae
um: delete unnecessary bootmem struct page array

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>
arch/um/include/shared/mem_user.h
arch/um/kernel/physmem.c
arch/um/kernel/um_arch.c