diff options
author | Lorenzo Stoakes <lstoakes@gmail.com> | 2016-10-12 20:20:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-18 17:13:37 -0400 |
commit | c164154f66f0c9b02673f07aa4f044f1d9c70274 (patch) | |
tree | fdfdc521c7cadcbbd8b4bb6bd85e8b17c13fcb13 /include/linux/mm.h | |
parent | d4944b0ecec0af882483fe44b66729316e575208 (diff) |
mm: replace get_user_pages_unlocked() write/force parameters with gup_flags
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 <lstoakes@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-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 bcdea1f4e98c..abd53f2eb74e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1287,7 +1287,7 @@ long __get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm, | |||
1287 | unsigned long start, unsigned long nr_pages, | 1287 | unsigned long start, unsigned long nr_pages, |
1288 | struct page **pages, unsigned int gup_flags); | 1288 | struct page **pages, unsigned int gup_flags); |
1289 | long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, | 1289 | long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, |
1290 | int write, int force, struct page **pages); | 1290 | struct page **pages, unsigned int gup_flags); |
1291 | int get_user_pages_fast(unsigned long start, int nr_pages, int write, | 1291 | int get_user_pages_fast(unsigned long start, int nr_pages, int write, |
1292 | struct page **pages); | 1292 | struct page **pages); |
1293 | 1293 | ||