Lines Matching defs:state
244 * Writes go through the following state machine to deal with
335 enum rbd_img_state state;
1743 u8 state;
1746 state = __rbd_object_map_get(rbd_dev, objno);
1748 return state;
1770 u8 state;
1776 state = rbd_object_map_get(rbd_dev, objno);
1777 return state != OBJECT_NONEXISTENT;
2019 u8 state, new_state, current_state;
2049 state = __rbd_object_map_get(rbd_dev, objno);
2050 if (!has_current_state || current_state == state ||
2051 (current_state == OBJECT_EXISTS && state == OBJECT_EXISTS_CLEAN))
2072 u8 state = rbd_object_map_get(rbd_dev, objno);
2074 if (state == new_state ||
2075 (new_state == OBJECT_PENDING && state == OBJECT_NONEXISTENT) ||
2076 (new_state == OBJECT_NONEXISTENT && state != OBJECT_PENDING))
2483 * redundant requests). Prepare object request state machines and image
2484 * request state machine for execution.
2516 img_req->state = RBD_IMG_START;
3593 switch (img_req->state) {
3602 img_req->state = RBD_IMG_EXCLUSIVE_LOCK;
3613 img_req->state = RBD_IMG_OBJECT_REQUESTS;
3616 img_req->state = __RBD_IMG_OBJECT_REQUESTS;
3892 * Either image request state machine(s) or rbd_add_acquire_lock()
3915 rbd_assert(img_req->state == RBD_IMG_EXCLUSIVE_LOCK);
6756 * Undo whatever state changes are made by v1 or v2 header info