Searched refs:R_SECONDARY (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/drivers/block/drbd/ |
D | drbd_strings.c | 46 [R_SECONDARY] = "Secondary", 93 return s > R_SECONDARY ? "TOO_LARGE" : drbd_role_s_names[s]; in drbd_role_str()
|
D | drbd_state.c | 305 device->state.role != R_SECONDARY) { in conn_all_vols_unconf() 321 if (role1 == R_SECONDARY || role2 == R_SECONDARY) in max_role() 322 return R_SECONDARY; in max_role() 330 if (role1 == R_SECONDARY || role2 == R_SECONDARY) in min_role() 331 return R_SECONDARY; in min_role() 337 enum drbd_role role = R_SECONDARY; in conn_highest_role() 850 else if (ns.role == R_SECONDARY && device->open_cnt) in is_valid_state() 1078 if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY) in sanitize_state() 1440 os.peer == R_SECONDARY && ns.peer == R_PRIMARY) in _drbd_set_state() 1836 if (os.peer == R_PRIMARY && ns.peer == R_SECONDARY) in after_state_ch() [all …]
|
D | drbd_proc.c | 264 state.role == R_SECONDARY) { in drbd_seq_show()
|
D | drbd_nl.c | 719 if (new_role == R_SECONDARY) { in drbd_set_role() 753 set_disk_ro(device->vdisk, new_role == R_SECONDARY); in drbd_set_role() 796 retcode = drbd_set_role(adm_ctx.device, R_SECONDARY, 0); in drbd_adm_set_role() 2880 if (device->state.role == R_SECONDARY && in drbd_adm_resize() 2881 device->state.peer == R_SECONDARY) { in drbd_adm_resize() 3043 if (device->state.conn == C_STANDALONE && device->state.role == R_SECONDARY) { in drbd_adm_invalidate() 4424 device->state.role == R_SECONDARY) { in adm_del_minor() 4524 retcode = drbd_set_role(peer_device->device, R_SECONDARY, 0); in drbd_adm_down()
|
D | drbd_receiver.c | 3156 if (hg == -1 && device->state.role == R_SECONDARY) in drbd_asb_recover_1p() 3174 rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); in drbd_asb_recover_1p() 3224 rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); in drbd_asb_recover_2p()
|
D | drbd_main.c | 1964 { .role = R_SECONDARY, in drbd_set_defaults()
|
/Linux-v5.4/include/linux/ |
D | drbd.h | 183 R_SECONDARY = 2, /* role */ enumerator
|