]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2264c94613e8f189a38baf6f3496b51aa8742e4c
tree9d8a8aad955db26b3f160b1d3b2a9a79afdddc14
parentfb3581c03f0e60e4871a658ee8ba284c68af6ab3
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