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

This removes the redundant 'write' and 'force' parameters from
__get_user_pages_unlocked() 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: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
mm/gup.c
mm/nommu.c
mm/process_vm_access.c
virt/kvm/async_pf.c
virt/kvm/kvm_main.c