On Thu, 2 Aug 2007, Dave Hansen wrote:

> On Thu, 2007-08-02 at 10:25 +0100, Andy Whitcroft wrote:
> > 
> > +unsigned long __meminit vmemmap_section_start(struct page *page)
> > +{
> > +       unsigned long offset = ((unsigned long)page) -
> > +                                               ((unsigned long)(vmemmap)); 
> 
> Isn't this basically page_to_pfn()?  Can we use it here?

Nope. He cast page to long.

Its equivalent to 

        page_to_pfn(page) * sizeof(struct page)

-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to