+/*
+ * Kludge code : it should be moved mdc_device.c if mdc_(mds)_device
+ * is really stacked.
+ */
+static int __cmm_type_init(struct lu_device_type *t)
+{
+ int rc;
+ rc = lu_device_type_init(&mdc_device_type);
+ if (rc == 0) {
+ rc = cmm_type_init(t);
+ if (rc)
+ lu_device_type_fini(&mdc_device_type);
+ }
+ return rc;
+}
+
+static void __cmm_type_fini(struct lu_device_type *t)
+{
+ lu_device_type_fini(&mdc_device_type);
+ cmm_type_fini(t);
+}
+
+static void __cmm_type_start(struct lu_device_type *t)
+{
+ mdc_device_type.ldt_ops->ldto_start(&mdc_device_type);
+ cmm_type_start(t);
+}
+
+static void __cmm_type_stop(struct lu_device_type *t)
+{
+ mdc_device_type.ldt_ops->ldto_stop(&mdc_device_type);
+ cmm_type_stop(t);
+}
+