mm: simplify ZONE_DEVICE page private data
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jun 2019 12:27:21 +0000 (14:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 2 Jul 2019 17:32:45 +0000 (14:32 -0300)
commit8a164fef9c4ccf6ff7757170397222860e40d192
tree32f53aa0e39177a6f952761d22c2415b717c5198
parenteee3ae41b153e55e25d6cf7bd5b5098ba0afe705
mm: simplify ZONE_DEVICE page private data

Remove the clumsy hmm_devmem_page_{get,set}_drvdata helpers, and
instead just access the page directly.  Also make the page data
a void pointer, and thus much easier to use.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/nouveau/nouveau_dmem.c
include/linux/hmm.h
include/linux/mm_types.h
mm/page_alloc.c