goto out;
}
- tdtd = obd->u.obt.obt_lut->lut_tdtd;
+ tdtd = obd2obt(obd)->obt_lut->lut_tdtd;
if (tdtd && tdtd->tdtd_show_update_logs_retrievers) {
char *buf;
int size = 0;
{
struct obd_device *obd = container_of(kobj, struct obd_device,
obd_kset.kobj);
- struct obd_device_target *target = &obd->u.obt;
+ struct obd_device_target *target = obd2obt(obd);
LASSERT(target->obt_magic == OBT_MAGIC);
- return scnprintf(buf, PAGE_SIZE, "%u\n", obd->u.obt.obt_instance);
+ return scnprintf(buf, PAGE_SIZE, "%u\n", obd2obt(obd)->obt_instance);
}
EXPORT_SYMBOL(instance_show);