diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2019-05-11 16:21:49 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 14:01:44 +0200 |
commit | 54ab3b24c536bc9b45ab444830974c6bea57778e (patch) | |
tree | 9c57ee81d877decd22049557e1dcda1f16ff698b /kernel | |
parent | 26350535c2cef4bcf5de597c301b0560650cec19 (diff) | |
download | linux-54ab3b24c536bc9b45ab444830974c6bea57778e.tar.bz2 |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions