mm/hmm: merge hmm_range_snapshot into hmm_range_fault
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Jul 2019 00:56:47 +0000 (17:56 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 26 Jul 2019 14:10:53 +0000 (11:10 -0300)
commitd45d464b118f428229d91769c8a3cc1e2e0bb4d5
tree2cc3f6a9435790fb3038c840e77dea66ffb45323
parent9a4903e49e495bfd2650862dfae4178bebe4db9c
mm/hmm: merge hmm_range_snapshot into hmm_range_fault

Add a HMM_FAULT_SNAPSHOT flag so that hmm_range_snapshot can be merged
into the almost identical hmm_range_fault function.

Link: https://lore.kernel.org/r/20190726005650.2566-5-rcampbell@nvidia.com
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Documentation/vm/hmm.rst
include/linux/hmm.h
mm/hmm.c