Fw: when to mark reserved low memory pages

Dave Hansen haveblue at us.ibm.com
Thu Sep 30 04:32:38 EST 2004


On Wed, 2004-09-29 at 11:31, John Rose wrote:
> Hi Dave, thanks for the suggestion.  One nit:
> 
> > start_pfn = rtas_rmo_buf >> PAGE_SHIFT;
> > end_pfn = (rtas_rmo_buf + RTAS_RMOBUF_MAX) >> PAGE_SHIFT;
> > for (pfn = start_pfn; pfn < end_pfn; pfn++)
> >         SetPageReserved(page_to_pfn(pfn));
> 
> Shouldn't the last line use pfn_to_page()?

Yep.  Didn't I say something *like* that? :)

-- 
Dave Hansen
haveblue at us.ibm.com




More information about the Linuxppc64-dev mailing list