Home
last modified time | relevance | path

Searched refs:obd_type (Results 1 – 25 of 25) sorted by relevance

/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec_lproc.c83 LASSERT(strcmp(dev->obd_type->typ_name, LUSTRE_OSC_NAME) == 0 || in sptlrpc_info_lprocfs_seq_show()
84 strcmp(dev->obd_type->typ_name, LUSTRE_MDC_NAME) == 0 || in sptlrpc_info_lprocfs_seq_show()
85 strcmp(dev->obd_type->typ_name, LUSTRE_MGC_NAME) == 0); in sptlrpc_info_lprocfs_seq_show()
121 LASSERT(strcmp(dev->obd_type->typ_name, LUSTRE_OSC_NAME) == 0 || in sptlrpc_ctxs_lprocfs_seq_show()
122 strcmp(dev->obd_type->typ_name, LUSTRE_MDC_NAME) == 0 || in sptlrpc_ctxs_lprocfs_seq_show()
123 strcmp(dev->obd_type->typ_name, LUSTRE_MGC_NAME) == 0); in sptlrpc_ctxs_lprocfs_seq_show()
143 if (strcmp(dev->obd_type->typ_name, LUSTRE_OSC_NAME) != 0 && in sptlrpc_lprocfs_cliobd_attach()
144 strcmp(dev->obd_type->typ_name, LUSTRE_MDC_NAME) != 0 && in sptlrpc_lprocfs_cliobd_attach()
145 strcmp(dev->obd_type->typ_name, LUSTRE_MGC_NAME) != 0) { in sptlrpc_lprocfs_cliobd_attach()
147 dev->obd_type->typ_name); in sptlrpc_lprocfs_cliobd_attach()
Dsec_config.c74 const char *type = obd->obd_type->typ_name; in sptlrpc_target_sec_part()
865 LASSERT(strcmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME) == 0 || in sptlrpc_conf_client_adapt()
866 strcmp(obd->obd_type->typ_name, LUSTRE_OSC_NAME) == 0); in sptlrpc_conf_client_adapt()
Dimport.c1080 strcmp(imp->imp_obd->obd_type->typ_name, in ptlrpc_connect_interpret()
1333 if (strcmp(imp->imp_obd->obd_type->typ_name, in ptlrpc_import_recovery_state_machine()
Dsec.c1288 imp->imp_obd->obd_type->typ_name, in sptlrpc_sec_create()
1298 imp->imp_obd->obd_type->typ_name, in sptlrpc_sec_create()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dgenops.c94 struct obd_type *class_search_type(const char *name) in class_search_type()
97 struct obd_type *type; in class_search_type()
101 type = list_entry(tmp, struct obd_type, typ_chain); in class_search_type()
112 struct obd_type *class_get_type(const char *name) in class_get_type()
114 struct obd_type *type = class_search_type(name); in class_get_type()
146 void class_put_type(struct obd_type *type) in class_put_type()
162 struct obd_type *type; in class_register_type()
229 struct obd_type *type = class_search_type(name); in class_unregister_type()
280 struct obd_type *type = NULL; in class_newdev()
328 result->obd_type = type; in class_newdev()
[all …]
Dobd_config.c472 obd->obd_minor, obd->obd_type->typ_name); in class_setup()
481 obd->obd_minor, obd->obd_type->typ_name); in class_setup()
783 if (strcmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME) && in class_add_conn()
784 strcmp(obd->obd_type->typ_name, LUSTRE_OSC_NAME) && in class_add_conn()
785 strcmp(obd->obd_type->typ_name, LUSTRE_OSP_NAME) && in class_add_conn()
786 strcmp(obd->obd_type->typ_name, LUSTRE_LWP_NAME) && in class_add_conn()
787 strcmp(obd->obd_type->typ_name, LUSTRE_MGC_NAME)) { in class_add_conn()
818 if (strcmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME) && in class_del_conn()
819 strcmp(obd->obd_type->typ_name, LUSTRE_OSC_NAME)) { in class_del_conn()
Dlprocfs_status.c945 struct obd_type *class = (struct obd_type *) data; in lprocfs_rd_numrefs()
959 LASSERT(obd->obd_type->typ_procroot != NULL); in lprocfs_obd_setup()
962 obd->obd_type->typ_procroot, in lprocfs_obd_setup()
1394 num_stats = ((int)sizeof(*obd->obd_type->typ_dt_ops) / sizeof(void *)) + in lprocfs_alloc_obd_stats()
Dclass_obd.c366 (int)index, status, obd->obd_type->typ_name, in class_handle_ioctl()
Dlu_object.c1282 struct obd_type *type; in lu_stack_fini()
/linux-4.1.27/drivers/staging/lustre/lustre/lclient/
Dlcommon_misc.c102 if (!strcmp(watched->obd_type->typ_name, LUSTRE_OSC_NAME)) { in cl_ocd_update()
118 watched->obd_type->typ_name, in cl_ocd_update()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dobd_class.h289 struct obd_type *class_search_type(const char *name);
290 struct obd_type *class_get_type(const char *name);
291 void class_put_type(struct obd_type *type);
329 #define OBT(dev) (dev)->obd_type
330 #define OBP(dev, op) (dev)->obd_type->typ_dt_ops->o_ ## op
331 #define MDP(dev, op) (dev)->obd_type->typ_md_ops->m_ ## op
564 ldt = obd->obd_type->typ_lu; in obd_setup()
604 ldt = obd->obd_type->typ_lu; in obd_precleanup()
633 ldt = obd->obd_type->typ_lu; in obd_cleanup()
684 ldt = obd->obd_type->typ_lu; in obd_process_config()
Dobd.h243 struct obd_type { struct
808 struct obd_type *obd_type; member
Dlu_object.h328 struct obd_type *ldt_obd_type;
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c113 obd->obd_type->typ_name, i); in lmv_set_mdc_active()
114 LASSERT(strcmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME) == 0); in lmv_set_mdc_active()
146 if (strcmp(watched->obd_type->typ_name, LUSTRE_MDC_NAME)) { in lmv_notify()
148 watched->obd_type->typ_name, in lmv_notify()
240 obd->obd_type->typ_name, obd->obd_name); in lmv_connect()
422 LASSERT(mdc_obd->obd_type != NULL); in lmv_connect_mdc()
423 LASSERT(mdc_obd->obd_type->typ_name != NULL); in lmv_connect_mdc()
427 mdc_obd->obd_type->typ_name, in lmv_connect_mdc()
431 obd->obd_type->typ_name, obd->obd_name, in lmv_connect_mdc()
684 obd->obd_type->typ_name, obd->obd_name); in lmv_disconnect()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_quota.c320 memcpy(qchk->obd_type, LUSTRE_OST_NAME, strlen(LUSTRE_OST_NAME)); in osc_quota_poll_check()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/linux/
Dlinux-module.c387 (int)index, status, obd->obd_type->typ_name, in obd_device_list_seq_show()
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/
Dlustre_user.h510 char obd_type[16]; member
615 char obd_type[16]; member
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dlproc_llite.c1072 LASSERT(obd->obd_type->typ_name != NULL); in lprocfs_register_mountpoint()
1074 dir = proc_mkdir(obd->obd_type->typ_name, sbi->ll_proc_root); in lprocfs_register_mountpoint()
1097 LASSERT(obd->obd_type->typ_name != NULL); in lprocfs_register_mountpoint()
1099 dir = proc_mkdir(obd->obd_type->typ_name, sbi->ll_proc_root); in lprocfs_register_mountpoint()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_obd.c196 LASSERT(osc_obd->obd_type->typ_name != NULL); in lov_connect_obd()
201 osc_obd->obd_type->typ_name, in lov_connect_obd()
205 obd->obd_type->typ_name, obd->obd_name, in lov_connect_obd()
454 if (strcmp(watched->obd_type->typ_name, LUSTRE_OSC_NAME)) { in lov_notify()
457 watched->obd_type->typ_name, in lov_notify()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_lib.c267 char *name = obddev->obd_type->typ_name; in client_obd_setup()
Dldlm_flock.c834 if (strcmp(exp->exp_obd->obd_type->typ_name, LUSTRE_MDT_NAME) != 0) in ldlm_init_flock_export()
Dldlm_pool.c437 LASSERT(obd->obd_type != LP_POISON); in ldlm_srv_pool_setup()
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c732 if (!strcmp(tgt->obd_type->typ_name, LUSTRE_MDT_NAME)) { in echo_device_alloc()
756 tgt_type_name = tgt->obd_type->typ_name; in echo_device_alloc()
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c1725 memcpy(qchk->obd_type, LUSTRE_MDS_NAME, strlen(LUSTRE_MDS_NAME)); in mdc_quota_poll_check()
2511 if (obd->obd_type->typ_refcnt <= 1) in mdc_precleanup()
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c713 if (obd->obd_type->typ_refcnt <= 1) in mgc_cleanup()