From: Sage Weil Date: Thu, 3 Mar 2011 00:55:21 +0000 (-0800) Subject: libceph: fix handling of short returns from get_user_pages X-Git-Tag: v2.6.38-rc8~9^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38815b780285a4957852c5c9dbe94991c0b26c56;p=pandora-kernel.git 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: Sage Weil --- Reading git-diff-tree failed