static int ost_setup(struct obd_device *obd, struct lustre_cfg *lcfg)
{
static struct ptlrpc_service_conf svc_conf;
- struct ost_obd *ost = &obd->u.ost;
+ struct ost_obd *ost = obd2ost(obd);
nodemask_t *mask;
int rc;
static int ost_cleanup(struct obd_device *obd)
{
- struct ost_obd *ost = &obd->u.ost;
+ struct ost_obd *ost = obd2ost(obd);
int err = 0;
ENTRY;
static int ost_health_check(const struct lu_env *env, struct obd_device *obd)
{
- struct ost_obd *ost = &obd->u.ost;
+ struct ost_obd *ost = obd2ost(obd);
int rc = 0;
mutex_lock(&ost->ost_health_mutex);