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 <email@example.com>
Reviewed-by: Jan Kara <firstname.lastname@example.org>
Acked-by: Michal Hocko <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
[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 <email@example.com>
Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>