bootmem: revisit bitmap size calculations
commitdf049a5f41a3b2eee2131221959e3b558ba7c705
authorJohannes Weiner <hannes@saeurebad.de>
Thu, 24 Jul 2008 04:28:02 +0000 (23 21:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:20 +0000 (24 10:47 -0700)
treedcba7fb3e442838e93e2fb0deb66acc79372b123
parent2e5237daf0cc3c8d87762f53f704dc54fa91dcf6
bootmem: revisit bitmap size calculations

Reincarnate get_mapsize as bootmap_bytes and implement
bootmem_bootmap_pages on top of it.

Adjust users of these helpers and make free_all_bootmem_core use
bootmem_bootmap_pages instead of open-coding it.

Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/bootmem.c