1 Sep 2004 01:12
Re: [Lhms-devel] Re: [RFC] buddy allocator without bitmap(2) [1/3]
Dave Hansen <haveblue <at> us.ibm.com>
2004-08-31 23:12:15 GMT
2004-08-31 23:12:15 GMT
On Tue, 2004-08-31 at 15:55, Hiroyuki KAMEZAWA wrote: > Dave Hansen wrote: > > > On Tue, 2004-08-31 at 03:41, Hiroyuki KAMEZAWA wrote: > > > >>+static void __init calculate_aligned_end(struct zone *zone, > >>+ unsigned long start_pfn, > >>+ int nr_pages) > > > > ... > > > >>+ end_address = (zone->zone_start_pfn + end_idx) << PAGE_SHIFT; > >>+#ifndef CONFIG_DISCONTIGMEM > >>+ reserve_bootmem(end_address,PAGE_SIZE); > >>+#else > >>+ reserve_bootmem_node(zone->zone_pgdat,end_address,PAGE_SIZE); > >>+#endif > >>+ } > >>+ return; > >>+} > > > > > > What if someone has already reserved that address? You might not be > > able to grow the zone, right? > > > 1) If someone has already reserved that address, it (the page) will not join to > buddy allocator and it's no problem. > > 2) No, I can grow the zone. > A reserved page is the last page of "not aligned contiguous mem_map", not zone.(Continue reading)
RSS Feed