Skip to content
Commit bb523b40 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable}



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>
parent 0c8eb288
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment