commit c164154f upstream.
This removes the 'write' and 'force' use from get_user_pages_unlocked()
and replaces them with 'gup_flags' to make the use of FOLL_FORCE
explicit in callers as use of this flag can result in surprising
behaviour (and hence bugs) within the mm subsystem.
Signed-off-by: Lorenzo Stoakes <firstname.lastname@example.org>
Reviewed-by: Jan Kara <email@example.com>
Acked-by: Michal Hocko <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
[bwh: Backported to 4.4:
- Also update calls from process_vm_rw_single_vec() and async_pf_execute()
- Adjust context]
Signed-off-by: Ben Hutchings <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>