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

From: John Hubbard
Date: Tue May 16 2023 - 13:04:08 EST


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