]> git.baikalelectronics.ru Git - kernel.git/commit
mm: replace get_user_pages_unlocked() write/force parameters with gup_flags
authorLorenzo Stoakes <lstoakes@gmail.com>
Thu, 13 Oct 2016 00:20:13 +0000 (01:20 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Oct 2016 21:13:37 +0000 (14:13 -0700)
commit1f587a202c5f74b6381ac3da69ca528a1bafb3a4
treefdfdc521c7cadcbbd8b4bb6bd85e8b17c13fcb13
parenta8af17146f38b189ce1d2f218991dbf4283cacac
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>
14 files changed:
arch/mips/mm/gup.c
arch/s390/mm/gup.c
arch/sh/mm/gup.c
arch/sparc/mm/gup.c
arch/x86/mm/gup.c
drivers/media/pci/ivtv/ivtv-udma.c
drivers/media/pci/ivtv/ivtv-yuv.c
drivers/scsi/st.c
drivers/video/fbdev/pvr2fb.c
include/linux/mm.h
mm/gup.c
mm/nommu.c
mm/util.c
net/ceph/pagevec.c