]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - mm/hmm.c
mm/hmm: use device_private_entry_to_pfn()
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 27 Mar 2020 20:00:18 +0000 (17:00 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 30 Mar 2020 19:58:36 +0000 (16:58 -0300)
commitf66c9a33aee943aa43b3698c1f6f2619e28a1c77
tree5c193b12d33a780d3deffa24504b85a5c7ee73b4
parent6bfef2f9194519ca23dee405a9f4db461a7a7826
mm/hmm: use device_private_entry_to_pfn()

swp_offset() should not be called directly, the wrappers are supposed to
abstract away the encoding of the device_private specific information in
the swap entry.

Link: https://lore.kernel.org/r/20200327200021.29372-7-jgg@ziepe.ca
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
mm/hmm.c