rbd: get rid of obj_req->xferred, obj_req->result and img_req->xferred
authorIlya Dryomov <idryomov@gmail.com>
Sat, 11 May 2019 14:21:49 +0000 (16:21 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:44 +0000 (14:01 +0200)
commit54ab3b24c536bc9b45ab444830974c6bea57778e
tree9c57ee81d877decd22049557e1dcda1f16ff698b
parent26350535c2cef4bcf5de597c301b0560650cec19
rbd: get rid of obj_req->xferred, obj_req->result and img_req->xferred

obj_req->xferred and img_req->xferred don't bring any value.  The
former is used for short reads and has to be set to obj_req->ex.oe_len
after that and elsewhere.  The latter is just an aggregate.

Use result for short reads (>=0 - number of bytes read, <0 - error) and
pass it around explicitly.  No need to store it in obj_req.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
drivers/block/rbd.c