vm_page_hold() and drm-legacy-kmod

Steve Kargl sgk at troutmask.apl.washington.edu
Tue Jul 9 05:04:03 UTC 2019


On Mon, Jul 08, 2019 at 09:43:36PM -0700, Steve Kargl wrote:
> On Mon, Jul 08, 2019 at 09:35:05PM -0700, Steve Kargl wrote:
> > On Mon, Jul 08, 2019 at 09:31:12PM -0700, Steve Kargl wrote:
> > > It seems the recent flurry of vm commits has
> > > broken the graphics/drm-legacy-kmod port.
> > > vm_page_hold() no longer exists.  How do I
> > > fix the port?
> > > 
> > 
> > Whoops.  The missing function is vm_page_unhold().
> > Anywhoo, how do I fix this?
> > 
> The code in question is 
> 
>         for (i = 0; i < vsg->num_pages; i++) {
>                 m = vsg->pages[i];
>                 vm_page_lock(m);
>                 vm_page_wire(m);
>                 vm_page_unhold(m);
>                 vm_page_unlock(m);
>         }

This was broken by r349846 committed by markj.

-- 
Steve


More information about the freebsd-current mailing list