Please sign in to comment.
mm: unexport __get_user_pages_unlocked()
Unexport 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_pf_execute() and process_vm_rw_single_vec() we need to pass different tsk, mm arguments so get_user_pages_remote() is the sane replacement in these cases (having added manual acquisition and release of mmap_sem.) Additionally get_user_pages_remote() reintroduces use of the FOLL_TOUCH flag. However, this flag was originally silently dropped by commit 1e98779 ("mm/gup: Introduce get_user_pages_remote()"), so this appears to have been unintentional and reintroducing it is therefore not an issue. [firstname.lastname@example.org: coding-style fixes] Link: http://email@example.com Signed-off-by: Lorenzo Stoakes <firstname.lastname@example.org> Acked-by: Michal Hocko <email@example.com> Cc: Jan Kara <firstname.lastname@example.org> Cc: Hugh Dickins <email@example.com> Cc: Dave Hansen <firstname.lastname@example.org> Cc: Rik van Riel <email@example.com> Cc: Mel Gorman <firstname.lastname@example.org> Cc: Paolo Bonzini <email@example.com> Cc: Radim Krcmar <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
- Loading branch information...
Showing with 25 additions and 21 deletions.