From: KAMEZAWA Hiroyuki Date: Mon, 27 Mar 2006 09:15:58 +0000 (-0800) Subject: [PATCH] for_each_online_pgdat: for_each_bootmem X-Git-Tag: v2.6.17-rc1~393 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=679bc9fbb508a0aac9539b2de747eb5849feb428;p=pandora-kernel.git [PATCH] for_each_online_pgdat: for_each_bootmem Add a list_head to bootmem_data_t and make bootmems use it. bootmem list is sorted by node_boot_start. Only nodes against which init_bootmem() is called are linked to the list. (i386 allocates bootmem only from one node(0) not from all online nodes.) A summary: 1. for_each_online_pgdat() traverses all *online* nodes. 2. alloc_bootmem() allocates memory only from initialized-for-bootmem nodes. Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed