diff options
author | Lorenzo Stoakes <lstoakes@gmail.com> | 2016-10-13 01:20:19 +0100 |
---|---|---|
committer | Michal Hocko <mhocko@suse.com> | 2016-10-24 13:16:51 +0200 |
commit | 298d1156483d24f83d1047f913107b3394f436e8 (patch) | |
tree | 433d84fb3377a3d72eee177c26e35022cea4d51c /include | |
parent | 3f861df9f9a95f7ff8292e8ec43ce3da8c03e5c6 (diff) |
mm: replace access_remote_vm() write parameter with gup_flags
This removes the 'write' argument from access_remote_vm() and replaces
it with 'gup_flags' as use of this function previously silently implied
FOLL_FORCE, whereas after this patch callers explicitly pass this flag.
We make this explicit as use of FOLL_FORCE can result in surprising
behaviour (and hence bugs) within the mm subsystem.
Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 6347e8d5bcce33fc36e651901efefbe2c93a43ef)
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index de6ef1b424c5..ccbd1274903d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1268,7 +1268,7 @@ static inline int fixup_user_fault(struct task_struct *tsk, extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write); extern int access_remote_vm(struct mm_struct *mm, unsigned long addr, - void *buf, int len, int write); + void *buf, int len, unsigned int gup_flags); long __get_user_pages(struct task_struct *tsk, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, |