mm/hmm: replace hmm_update with mmu_notifier_range
authorRalph Campbell <rcampbell@nvidia.com>
Fri, 26 Jul 2019 00:56:44 +0000 (17:56 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 26 Jul 2019 14:10:53 +0000 (11:10 -0300)
commit1f961807925032daa90267d8a23ff730e7ede07a
treec53fd7ba8d6e8b01a509e581e79e2fe1f4d76dc8
parente709accc7670a07b2e5186449f0640c2416662ec
mm/hmm: replace hmm_update with mmu_notifier_range

The hmm_mirror_ops callback function sync_cpu_device_pagetables() passes a
struct hmm_update which is a simplified version of struct
mmu_notifier_range. This is unnecessary so replace hmm_update with
mmu_notifier_range directly.

Link: https://lore.kernel.org/r/20190726005650.2566-2-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
[jgg: white space tuning]
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
drivers/gpu/drm/nouveau/nouveau_svm.c
include/linux/hmm.h
mm/hmm.c