rbd: get rid of RBD_OBJ_WRITE_{FLAT,GUARD}
authorIlya Dryomov <idryomov@gmail.com>
Tue, 14 May 2019 18:45:38 +0000 (20:45 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:44 +0000 (14:01 +0200)
commit0ad5d953548fe336134026b039ad4fd9e6594f16
tree6b932ed739c33e9bfeaf83acd26c436f5b9cbf1f
parenta9b67e69949d20dcb38ea6aaed5500318c7c91f6
rbd: get rid of RBD_OBJ_WRITE_{FLAT,GUARD}

In preparation for moving OSD request allocation and submission into
object request state machines, get rid of RBD_OBJ_WRITE_{FLAT,GUARD}.
We would need to start in a new state, whether the request is guarded
or not.  Unify them into RBD_OBJ_WRITE_OBJECT and pass guard info
through obj_req->flags.

While at it, make our ENOENT handling a little more precise: only hide
ENOENT when it is actually expected, that is on delete.

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