lkml.org 
[lkml]   [2004]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] remove direct mem_map refs for x86-64
From
Date
On Wed, 2004-11-03 at 18:02 +0100, Andi Kleen wrote:
> On Wed, Nov 03, 2004 at 05:32:47PM +0100, Arjan van de Ven wrote:
> > On Wed, 2004-11-03 at 08:47 -0800, Matt Tolentino wrote:
> > > - page = pgdat->node_mem_map + i;
> > > - total++;
> > > + page = pfn_to_page(pgdat->node_start_pfn + i);
> > > + total++;
> >
> > this can't be correct... pfn_to_page starts to count from address 0
> > while the original code starts from the start of the node..
>
> That is why he adds node_start_pfn

DOH yes; sorry.


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

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.066 / U:0.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site