]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hmm: don't abuse pte_index() in hmm_vma_handle_pmd
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2019 16:05:47 +0000 (19:05 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Aug 2019 17:58:06 +0000 (14:58 -0300)
commit38fda0b54841831b1fb82db05d0aec00ebb9852f
treec0847f8ec2e351fcb1e1d4d6eb0e63f4e6ece197
parentaf1823ca4e0fe5e27947b697a45e85a276642e5f
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>
mm/hmm.c