memremap: add a migrate_to_ram method to struct dev_pagemap_ops
This replaces the hacky ->fault callback, which is currently directly called from common code through a hmm specific data structure as an exercise in layering violations. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Ralph Campbell <rcampbell@nvidia.com> Reviewed-by:
Jason Gunthorpe <jgg@mellanox.com> Reviewed-by:
Dan Williams <dan.j.williams@intel.com> Tested-by:
Dan Williams <dan.j.williams@intel.com> Signed-off-by:
Jason Gunthorpe <jgg@mellanox.com>
Showing
- include/linux/hmm.h 0 additions, 6 deletionsinclude/linux/hmm.h
- include/linux/memremap.h 6 additions, 0 deletionsinclude/linux/memremap.h
- include/linux/swapops.h 0 additions, 15 deletionsinclude/linux/swapops.h
- kernel/memremap.c 4 additions, 31 deletionskernel/memremap.c
- mm/hmm.c 5 additions, 8 deletionsmm/hmm.c
- mm/memory.c 2 additions, 7 deletionsmm/memory.c
Loading
Please register or sign in to comment