commit | 309f9a4f5e1a233d5df2101b9394ee689d9e463f | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Aug 06 19:05:47 2019 +0300 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Wed Aug 07 14:58:06 2019 -0300 |
tree | c0847f8ec2e351fcb1e1d4d6eb0e63f4e6ece197 | |
parent | 05c23af4a1b34df5838ebab2da1d6f802cf5ece3 [diff] |
mm/hmm: don't abuse pte_index() in hmm_vma_handle_pmd pte_index is an internal arch helper in various architectures, without consistent semantics. Open code that calculation of a PMD index based on the virtual address instead. Link: https://lore.kernel.org/r/20190806160554.14046-10-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>