diff options
| author | Lorenzo Stoakes <lstoakes@gmail.com> | 2016-10-12 20:20:17 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-19 11:12:02 -0400 |
| commit | 9beae1ea89305a9667ceaab6d0bf46a045ad71e7 (patch) | |
| tree | 32df9181fe7354a3ea2d4cdc8e852a072f2a2346 /include/linux | |
| parent | 768ae309a96103ed02eb1e111e838c87854d8b51 (diff) | |
mm: replace get_user_pages_remote() write/force parameters with gup_flags
This removes the 'write' and 'force' from get_user_pages_remote() 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 <lstoakes@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -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 30bb5d9631bb..ecc4be7b67e0 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -1276,7 +1276,7 @@ long __get_user_pages(struct task_struct *tsk, struct mm_struct *mm, | |||
| 1276 | struct vm_area_struct **vmas, int *nonblocking); | 1276 | struct vm_area_struct **vmas, int *nonblocking); |
| 1277 | long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm, | 1277 | long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm, |
| 1278 | unsigned long start, unsigned long nr_pages, | 1278 | unsigned long start, unsigned long nr_pages, |
| 1279 | int write, int force, struct page **pages, | 1279 | unsigned int gup_flags, struct page **pages, |
| 1280 | struct vm_area_struct **vmas); | 1280 | struct vm_area_struct **vmas); |
| 1281 | long get_user_pages(unsigned long start, unsigned long nr_pages, | 1281 | long get_user_pages(unsigned long start, unsigned long nr_pages, |
| 1282 | unsigned int gup_flags, struct page **pages, | 1282 | unsigned int gup_flags, struct page **pages, |
