Re: vm_page_hold() and drm-legacy-kmod

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Mon, 8 Jul 2019 21:43:36 -0700
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);                                              
        }                                                                       

-- 
Steve
Received on Tue Jul 09 2019 - 02:43:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC