if (!obd)
return 0;
- lut = obd->u.obt.obt_lut;
-
+ lut = obd2obt(obd)->obt_lut;
/* select fastest checksum type on the server */
pref = obd_cksum_type_select(obd->obd_name,
lut->lut_cksum_types_supported, 0);
{
struct obd_device *obd = container_of(kobj, struct obd_device,
obd_kset.kobj);
- struct lu_target *lut = obd->u.obt.obt_lut;
+ struct lu_target *lut = obd2obt(obd)->obt_lut;
return scnprintf(buf, PAGE_SIZE, "%u\n", lut->lut_cksum_t10pi_enforce);
}
{
struct obd_device *obd = container_of(kobj, struct obd_device,
obd_kset.kobj);
- struct lu_target *lut = obd->u.obt.obt_lut;
+ struct lu_target *lut = obd2obt(obd)->obt_lut;
bool enforce;
int rc;