get_ldev_if_state
if (get_ldev_if_state(device, D_FAILED)) { /* Makes sure ->resync is there. */
if (get_ldev_if_state(device, D_FAILED)) {
else if (!get_ldev_if_state(device, D_ATTACHING)) {
if (!get_ldev_if_state(device, D_ATTACHING)) { /* put is in drbd_bm_aio_ctx_destroy() */
if (!get_ldev_if_state(device, D_NEGOTIATING))
if (get_ldev_if_state(device, D_FAILED)) {
if (get_ldev_if_state(device, D_FAILED)) {
if (!get_ldev_if_state(device, D_FAILED))
#define get_ldev(_device) get_ldev_if_state(_device, D_INCONSISTENT)
if (!get_ldev_if_state(device, D_FAILED))
if (!get_ldev_if_state(device, D_NEGOTIATING))
if (get_ldev_if_state(device, D_NEGOTIATING)) {
if (get_ldev_if_state(device, D_NEGOTIATING)) {
if (!get_ldev_if_state(device, D_ATTACHING))
if (get_ldev_if_state(device, D_ATTACHING)) {
if (get_ldev_if_state(device, D_CONSISTENT)) {
if (drbd_proc_details >= 1 && get_ldev_if_state(device, D_FAILED)) {
if (!get_ldev_if_state(device, D_UP_TO_DATE)) {
get_ldev_if_state(device, D_NEGOTIATING)) {
if (get_ldev_if_state(device, D_NEGOTIATING)) {
if (get_ldev_if_state(device, D_FAILED)) {
if (!get_ldev_if_state(device, D_UP_TO_DATE))
if (get_ldev_if_state(device, D_FAILED)) {
get_ldev_if_state(device, D_NEGOTIATING)) {
if (get_ldev_if_state(device, D_FAILED)) {
|| !get_ldev_if_state(device, D_NEGOTIATING)) {