]> git.baikalelectronics.ru Git - kernel.git/commit
bootmem: revisit bitmap size calculations
authorJohannes Weiner <hannes@saeurebad.de>
Thu, 24 Jul 2008 04:28:02 +0000 (21:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:20 +0000 (10:47 -0700)
commit2e5fa4cf787910d4dd7cd9e4a85e8a3ceb10fadf
treedcba7fb3e442838e93e2fb0deb66acc79372b123
parentb95469a9674408f61acced07fc423621e290a128
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