[PATCH v5 1/6] mm/gup: remove unused vmas parameter from get_user_pages()

John Hubbard jhubbard at nvidia.com
Tue May 16 17:03:59 UTC 2023


On 5/16/23 07:35, David Hildenbrand wrote:
...
>>> When passing NULL as "pages" to get_user_pages(), __get_user_pages_locked()
>>> won't set FOLL_GET. As FOLL_PIN is also not set, we won't be messing with
>>> the mapcount of the page.
> 
> For completeness: s/mapcount/refcount/ :)

whew, you had me going there! Now it all adds up. :) 

thanks,
-- 
John Hubbard
NVIDIA



More information about the dri-devel mailing list