mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf
authorDave Jiang <dave.jiang@intel.com>
Fri, 24 Feb 2017 22:56:41 +0000 (14:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 01:46:54 +0000 (17:46 -0800)
commit11bac80004499ea59f361ef2a5516c84b6eab675
treeb971df98b3fa9d4e62b8f4f7b5ec950181df4daa
parent374ad05ab64d696303cec5cc8ec3a65d457b7b1c
mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf

->fault(), ->page_mkwrite(), and ->pfn_mkwrite() calls do not need to
take a vma and vmf parameter when the vma already resides in vmf.

Remove the vma parameter to simplify things.

[arnd@arndb.de: fix ARM build]
Link: http://lkml.kernel.org/r/20170125223558.1451224-1-arnd@arndb.de
Link: http://lkml.kernel.org/r/148521301778.19116.10840599906674778980.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jan Kara <jack@suse.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
87 files changed:
arch/powerpc/kvm/book3s_64_vio.c
arch/powerpc/platforms/cell/spufs/file.c
drivers/android/binder.c
drivers/char/agp/alpha-agp.c
drivers/char/mspec.c
drivers/dax/dax.c
drivers/gpu/drm/armada/armada_gem.c
drivers/gpu/drm/drm_vm.c
drivers/gpu/drm/etnaviv/etnaviv_drv.h
drivers/gpu/drm/etnaviv/etnaviv_gem.c
drivers/gpu/drm/exynos/exynos_drm_gem.c
drivers/gpu/drm/exynos/exynos_drm_gem.h
drivers/gpu/drm/gma500/framebuffer.c
drivers/gpu/drm/gma500/gem.c
drivers/gpu/drm/gma500/psb_drv.h
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/omapdrm/omap_drv.h
drivers/gpu/drm/omapdrm/omap_gem.c
drivers/gpu/drm/qxl/qxl_ttm.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/tegra/gem.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_gem.c
drivers/gpu/drm/vgem/vgem_drv.c
drivers/gpu/drm/virtio/virtgpu_ttm.c
drivers/hsi/clients/cmt_speech.c
drivers/hwtracing/intel_th/msu.c
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/qib/qib_file_ops.c
drivers/media/v4l2-core/videobuf-dma-sg.c
drivers/misc/cxl/context.c
drivers/misc/sgi-gru/grumain.c
drivers/misc/sgi-gru/grutables.h
drivers/scsi/cxlflash/superpipe.c
drivers/scsi/sg.c
drivers/staging/android/ion/ion.c
drivers/staging/lustre/lustre/llite/llite_mmap.c
drivers/staging/lustre/lustre/llite/vvp_io.c
drivers/target/target_core_user.c
drivers/uio/uio.c
drivers/usb/mon/mon_bin.c
drivers/video/fbdev/core/fb_defio.c
drivers/xen/privcmd.c
fs/9p/vfs_file.c
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/ceph/addr.c
fs/cifs/file.c
fs/dax.c
fs/ext2/file.c
fs/ext4/ext4.h
fs/ext4/file.c
fs/ext4/inode.c
fs/f2fs/file.c
fs/fuse/file.c
fs/gfs2/file.c
fs/iomap.c
fs/kernfs/file.c
fs/ncpfs/mmap.c
fs/nfs/file.c
fs/nilfs2/file.c
fs/ocfs2/mmap.c
fs/proc/vmcore.c
fs/ubifs/file.c
fs/xfs/xfs_file.c
include/linux/dax.h
include/linux/iomap.h
include/linux/mm.h
ipc/shm.c
kernel/events/core.c
kernel/relay.c
mm/filemap.c
mm/hugetlb.c
mm/memory.c
mm/mmap.c
mm/nommu.c
mm/shmem.c
security/selinux/selinuxfs.c
sound/core/pcm_native.c
sound/usb/usx2y/us122l.c
sound/usb/usx2y/usX2Yhwdep.c
sound/usb/usx2y/usx2yhwdeppcm.c
virt/kvm/kvm_main.c