bootmem: revisit bootmem descriptor list handling
authorJohannes Weiner <hannes@saeurebad.de>
Thu, 24 Jul 2008 04:28:03 +0000 (21:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:20 +0000 (10:47 -0700)
commit636cc40cb79f511d9caa27ef098a83e4fa4971fb
treec1090aa1a56bfc1ddb3de2f17447b98c20515646
parentdf049a5f41a3b2eee2131221959e3b558ba7c705
bootmem: revisit bootmem descriptor list handling

link_bootmem handles an insertion of a new descriptor into the sorted list
in more or less three explicit branches; empty list, insert in between and
append.  These cases can be expressed implicite.

Also mark the sorted list as initdata as it can be thrown away after boot
as well.

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