Skip to content
Commit 38815b78 authored by Sage Weil's avatar Sage Weil
Browse files

libceph: fix handling of short returns from get_user_pages



get_user_pages() can return fewer pages than we ask for.  We were returning
a bogus pointer/error code in that case.  Instead, loop until we get all
the pages we want or get an error we can return to the caller.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 16a8b70a
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