commit | 38815b780285a4957852c5c9dbe94991c0b26c56 | [log] [tgz] |
---|---|---|
author | Sage Weil <sage@newdream.net> | Wed Mar 02 16:55:21 2011 -0800 |
committer | Sage Weil <sage@newdream.net> | Thu Mar 03 13:47:39 2011 -0800 |
tree | 032d882544ef73d2e99208de7a6e6340df3d31ea | |
parent | 16a8b70a5a757db513f036bbcc73309f6c507d81 [diff] |
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 <sage@newdream.net>