]> git.baikalelectronics.ru Git - kernel.git/commit
mm: remove write/force parameters from __get_user_pages_locked()
authorLorenzo Stoakes <lstoakes@gmail.com>
Thu, 13 Oct 2016 00:20:11 +0000 (01:20 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Oct 2016 21:13:36 +0000 (14:13 -0700)
commit235833b2a19891425346742ccc4c23441366f032
treed2da6062b292dd6478a607bb8d564047d087144c
parent6b66b3e09fa721c37b0af777465bbee25f99fa95
mm: remove write/force parameters from __get_user_pages_locked()

This removes the redundant 'write' and 'force' parameters from
__get_user_pages_locked() 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>
mm/gup.c