[PATCH 2/2] mm: unexport __get_user_pages_unlocked()

2016-10-27 Thread Michal Hocko
On Thu 27-10-16 10:51:41, Lorenzo Stoakes wrote: > This patch unexports the low-level __get_user_pages_unlocked() function and > replaces invocations with calls to more appropriate higher-level functions. > > In hva_to_pfn_slow() we are able to replace __get_user_pages_unlocked() with > get_user_p

[PATCH 2/2] mm: unexport __get_user_pages_unlocked()

2016-10-27 Thread Lorenzo Stoakes
This patch unexports the low-level __get_user_pages_unlocked() function and replaces invocations with calls to more appropriate higher-level functions. In hva_to_pfn_slow() we are able to replace __get_user_pages_unlocked() with get_user_pages_unlocked() since we can now pass gup_flags. In async_