• Andreas Gruenbacher's avatar
    gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable} · bb523b40
    Andreas Gruenbacher authored
    Turn fault_in_pages_{readable,writeable} into versions that return the
    number of bytes not faulted in, similar to copy_to_user, instead of
    returning a non-zero value when any of the requested pages couldn't be
    faulted in.  This supports the existing users that require all pages to
    be faulted in as well as new users that are happy if any pages can be
    faulted in.
    
    Rename the functions to fault_in_{readable,writeable} to make sure
    this change doesn't silently break things.
    
    Neither of these functions is entirely trivial and it doesn't seem
    useful to inline them, so move them to mm/gup.c.
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    bb523b40
kvm.c 18.6 KB