lkml.org 
[lkml]   [2008]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] mm: make reserve_bootmem can crossed the nodes
Date
Hi,

"Yinghai Lu" <yhlu.kernel@gmail.com> writes:

> On Thu, Mar 13, 2008 at 7:58 PM, Johannes Weiner <hannes@saeurebad.de> wrote:
>> Hi,
>>
>>
>> KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> 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...

Sorry, I did not see that.

Hannes


\
 
 \ /
  Last update: 2008-03-15 04:13    [W:0.035 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site