Skip to content
Snippets Groups Projects
user avatar
Paolo Bonzini authored
Currently, the follow_pfn function is exported for modules but
follow_pte is not.  However, follow_pfn is very easy to misuse,
because it does not provide protections (so most of its callers
assume the page is writable!) and because it returns after having
already unlocked the page table lock.

Provide instead a simplified version of follow_pte that does
not have the pmdpp and range arguments.  The older version
survives as follow_invalidate_pte() for use by fs/dax.c.

Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
9fd6dad1
History
Name Last commit Last update
..
kvm
lib
Makefile