rbd: move to obj_req->img_extents
authorIlya Dryomov <idryomov@gmail.com>
Tue, 6 Feb 2018 18:26:33 +0000 (19:26 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:43 +0000 (10:12 +0200)
commit86bd7998fa2c1b18fda74cfa4674cfb49ae701c7
tree00d27d1eab2f9b5d7b232e41396f5c6fb916ba8f
parent43df3d35c0a558e461a1d7b3f0b21f5c43a5955f
rbd: move to obj_req->img_extents

In preparation for rbd "fancy" striping, replace obj_req->img_offset
with obj_req->img_extents.  A single starting offset isn't sufficient
because we want only one OSD request per object and will merge adjacent
object extents in ceph_file_to_extents().  The final object extent may
map into multiple different byte ranges in the image.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c