ceph: refactor ceph_sync_read()
authorYan, Zheng <zyan@redhat.com>
Sat, 29 Sep 2018 08:02:19 +0000 (16:02 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 22 Oct 2018 08:28:20 +0000 (10:28 +0200)
commitfce7a9744bdf3baa9d08c52d2c78f53ab49918a4
tree790648e3726259f60619a8a8b455f86cef9c37b0
parent74c9e6bf4c888e41bc7db340fb94fade96394038
ceph: refactor ceph_sync_read()

Avoid allocating memory for the entire user request: striped_read()
does a synchronous OSD request per object, so it doesn't need more than
object size worth of pages at a time.

[ Preserve the comment, changelog. ]

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c