[PATCH 2/4] powerpc: Prepare to support kernel handling of IOMMU map/unmap

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Jun 16 14:31:20 EST 2013


On Sun, 2013-06-16 at 14:26 +1000, Benjamin Herrenschmidt wrote:
> > +int realmode_get_page(struct page *page)
> > +{
> > +     if (PageCompound(page))
> > +             return -EAGAIN;
> > +
> > +     get_page(page);
> > +
> > +     return 0;
> > +}

Shouldn't it be get_page_unless_zero ?

Cheers,
Ben.



More information about the Linuxppc-dev mailing list