ceph: update readpages osd request according to size of pages
authorYan, Zheng <zyan@redhat.com>
Thu, 19 Jan 2017 03:21:29 +0000 (11:21 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 11:16:07 +0000 (12:16 +0100)
commitd641df819db8b80198fd85d9de91137e8a823b07
tree9d8a8aad955db26b3f160b1d3b2a9a79afdddc14
parent24c149ad6914d349d8b64749f20f3f8ea5031fe0
ceph: update readpages osd request according to size of pages

add_to_page_cache_lru() can fails, so the actual pages to read
can be smaller than the initial size of osd request. We need to
update osd request size in that case.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
fs/ceph/addr.c
net/ceph/osd_client.c