mm: use vmf->address instead of of vmf->virtual_address
authorJan Kara <jack@suse.cz>
Wed, 14 Dec 2016 23:07:01 +0000 (15:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2016 00:04:09 +0000 (16:04 -0800)
commit1a29d85eb0f19b7d8271923d8917d7b4f5540b3e
tree76bf90e637fb4b0c95a7a9eb81bc9aec71329a4e
parent82b0f8c39a3869b6fd2a10e180a862248736ec6f
mm: use vmf->address instead of of vmf->virtual_address

Every single user of vmf->virtual_address typed that entry to unsigned
long before doing anything with it so the type of virtual_address does
not really provide us any additional safety.  Just use masked
vmf->address which already has the appropriate type.

Link: http://lkml.kernel.org/r/1479460644-25076-3-git-send-email-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
27 files changed:
arch/powerpc/platforms/cell/spufs/file.c
arch/x86/entry/vdso/vma.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_gem.c
drivers/gpu/drm/exynos/exynos_drm_gem.c
drivers/gpu/drm/gma500/framebuffer.c
drivers/gpu/drm/gma500/gem.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/omapdrm/omap_gem.c
drivers/gpu/drm/tegra/gem.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
drivers/gpu/drm/udl/udl_gem.c
drivers/gpu/drm/vgem/vgem_drv.c
drivers/media/v4l2-core/videobuf-dma-sg.c
drivers/misc/cxl/context.c
drivers/misc/sgi-gru/grumain.c
drivers/staging/android/ion/ion.c
drivers/staging/lustre/lustre/llite/vvp_io.c
drivers/xen/privcmd.c
fs/dax.c
include/linux/mm.h
mm/memory.c