]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: handle partial result from get_user_pages
authorHenry C Chang <henry_c_chang@tcloudcomputing.com>
Fri, 17 Dec 2010 17:55:59 +0000 (09:55 -0800)
committerSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 17:55:59 +0000 (09:55 -0800)
commitcc1bdef96070dbbb7bebe1ba3ad7484596a371d1
treeac0a77f2d6b36d4140bbaf3b8c14a37e8ae1ef11
parente18d0665f4758c500787c76e9542e51994f5e856
ceph: handle partial result from get_user_pages

The get_user_pages() helper can return fewer than the requested pages.
Error out in that case, and clean up the partial result.

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/pagevec.c