ceph: allocate non-zero page to fscache in readpage()
authorLi Wang <liwang@ubuntukylin.com>
Sat, 9 Nov 2013 02:26:06 +0000 (10:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:07 +0000 (12:25 -0800)
commit17e38d92d2faa7777009d8e21215d843ee0f9ee3
tree89f15297fd181c15c121b7f8553fdb97d2b373a7
parentb419588352e9a826082d7784dd3398c490314eab
ceph: allocate non-zero page to fscache in readpage()

commit ff638b7df5a9264024a6448bdfde2b2bf5d1994a upstream.

ceph_osdc_readpages() returns number of bytes read, currently,
the code only allocate full-zero page into fscache, this patch
fixes this.

Signed-off-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Milosz Tanski <milosz@adfin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/addr.c