Lines Matching refs:resource_state_change
157 struct drbd_resource_state_change *resource_state_change; in remember_new_state() local
164 resource_state_change = &state_change->resource[0]; in remember_new_state()
165 resource = resource_state_change->resource; in remember_new_state()
167 resource_state_change->role[NEW] = in remember_new_state()
169 resource_state_change->susp[NEW] = resource->susp; in remember_new_state()
170 resource_state_change->susp_nod[NEW] = resource->susp_nod; in remember_new_state()
171 resource_state_change->susp_fen[NEW] = resource->susp_fen; in remember_new_state()
213 struct drbd_resource_state_change *resource_state_change = &state_change->resource[0]; in copy_old_to_new_state_change() local
219 OLD_TO_NEW(resource_state_change->role); in copy_old_to_new_state_change()
220 OLD_TO_NEW(resource_state_change->susp); in copy_old_to_new_state_change()
221 OLD_TO_NEW(resource_state_change->susp_nod); in copy_old_to_new_state_change()
222 OLD_TO_NEW(resource_state_change->susp_fen); in copy_old_to_new_state_change()
1545 struct drbd_resource_state_change *resource_state_change, in notify_resource_state_change() argument
1548 struct drbd_resource *resource = resource_state_change->resource; in notify_resource_state_change()
1550 .res_role = resource_state_change->role[NEW], in notify_resource_state_change()
1551 .res_susp = resource_state_change->susp[NEW], in notify_resource_state_change()
1552 .res_susp_nod = resource_state_change->susp_nod[NEW], in notify_resource_state_change()
1553 .res_susp_fen = resource_state_change->susp_fen[NEW], in notify_resource_state_change()
1605 struct drbd_resource_state_change *resource_state_change = &state_change->resource[0]; in broadcast_state_change() local
1626 HAS_CHANGED(resource_state_change->role) || in broadcast_state_change()
1627 HAS_CHANGED(resource_state_change->susp) || in broadcast_state_change()
1628 HAS_CHANGED(resource_state_change->susp_nod) || in broadcast_state_change()
1629 HAS_CHANGED(resource_state_change->susp_fen); in broadcast_state_change()
1633 resource_state_change, NOTIFY_CHANGE); in broadcast_state_change()