if (rc)
GOTO(out, rc);
- LASSERT(target->u.obt.obt_magic == OBT_MAGIC);
- data->ocd_instance = target->u.obt.obt_instance;
+ data->ocd_instance = obd2obt(target)->obt_instance;
/*
* Return only the parts of obd_connect_data that we understand, so the
int new_client)
{
timeout_t service_timeout = lustre_msg_get_service_timeout(req->rq_reqmsg);
- struct obd_device_target *obt = &obd->u.obt;
+ struct obd_device_target *obt = obd2obt(obd);
if (!new_client && service_timeout)
/*