libceph: add helper that duplicates last extent operation
commit2c63f49a724a10bb71cc0fd34f8e5acce78525d5
authorYan, Zheng <zyan@redhat.com>
Thu, 7 Jan 2016 09:32:54 +0000 (7 17:32 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 25 Mar 2016 17:51:43 +0000 (25 18:51 +0100)
tree89e28fde957db2d813d69c2f96a0934bdb455941
parent3f1af42ad0fad8a12242233dd0d9fc42f5e83415
libceph: add helper that duplicates last extent operation

This helper duplicates last extent operation in OSD request, then
adjusts the new extent operation's offset and length. The helper
is for scatterd page writeback, which adds nonconsecutive dirty
pages to single OSD request.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/osd_client.h
net/ceph/osd_client.c