Re: [PATCH] mm: make reserve_bootmem can crossed the nodes

From: Yinghai Lu
Date: Thu Mar 13 2008 - 23:03:48 EST


On Thu, Mar 13, 2008 at 7:58 PM, Johannes Weiner <hannes@xxxxxxxxxxxx> wrote:
> Hi,
>
>
> KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> writes:
>
> > Background:
> > - reserve_bootmem is called for *reserve* memory before bootmem allocator.
> > - It specifies <address, size>.
> > - Because <addrees, size> are argments, memory hole in <address, size> is not
> > problem here.
> >
> > Before change,
> > - reseve_bootmem() only works for Node(0)
> >
> > After change
> > - reserve_bootmem() works on sutiable nodes for <address, size>
> > - It can spread accross among prural nodes.
>
> After the change it will iterate over all nodes, reserving the range
> `address to address+size' on each of them.

+ /* out of range */
+ if (addr >= bdata->node_boot_start && addr < bdata->last_success)
+ return;

out of range will bail out...

YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/