Searched refs:R_SECONDARY (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/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() 1837 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 | 718 if (new_role == R_SECONDARY) { in drbd_set_role() 752 set_disk_ro(device->vdisk, new_role == R_SECONDARY); in drbd_set_role() 796 rv = drbd_set_role(adm_ctx.device, R_SECONDARY, 0); in drbd_adm_set_role() 2796 if (device->state.role == R_SECONDARY && in drbd_adm_resize() 2797 device->state.peer == R_SECONDARY) { in drbd_adm_resize() 2958 if (device->state.conn == C_STANDALONE && device->state.role == R_SECONDARY) { in drbd_adm_invalidate() 4332 device->state.role == R_SECONDARY) { in adm_del_minor() 4432 retcode = drbd_set_role(peer_device->device, R_SECONDARY, 0); in drbd_adm_down()
|
D | drbd_receiver.c | 3104 if (hg == -1 && device->state.role == R_SECONDARY) in drbd_asb_recover_1p() 3122 rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); in drbd_asb_recover_1p() 3172 rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); in drbd_asb_recover_2p()
|
D | drbd_main.c | 1930 { .role = R_SECONDARY, in drbd_set_defaults()
|
/linux-6.1.9/include/linux/ |
D | drbd.h | 183 R_SECONDARY = 2, /* role */ enumerator
|