libceph: fix handling of short returns from get_user_pages
authorSage Weil <sage@newdream.net>
Thu, 3 Mar 2011 00:55:21 +0000 (16:55 -0800)
committerSage Weil <sage@newdream.net>
Thu, 3 Mar 2011 21:47:39 +0000 (13:47 -0800)
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: Sage Weil <sage@newdream.net>

No differences found