Whamcloud - gitweb
LU-137 obdclass: add dt_object_put() and use it
[fs/lustre-release.git] / lustre / lod / lod_object.c
index cb15551..1e939b0 100644 (file)
@@ -1831,7 +1831,7 @@ out_put:
        if (rc < 0) {
                for (i = 0; i < stripe_count; i++)
                        if (stripe[i] != NULL)
-                               lu_object_put(env, &stripe[i]->do_lu);
+                               dt_object_put(env, stripe[i]);
                OBD_FREE(stripe, sizeof(stripe[0]) * stripe_count);
                lo->ldo_stripenr = 0;
                lo->ldo_stripes_allocated = 0;
@@ -3101,8 +3101,7 @@ static void lod_ah_init(const struct lu_env *env,
 
                        spin_lock(&d->lod_lock);
                        if (d->lod_md_root != NULL)
-                               lu_object_put(env,
-                                             &d->lod_md_root->ldo_obj.do_lu);
+                               dt_object_put(env, &d->lod_md_root->ldo_obj);
                        d->lod_md_root = lroot;
                        spin_unlock(&d->lod_lock);
                }
@@ -4065,7 +4064,7 @@ void lod_object_free_striping(const struct lu_env *env, struct lod_object *lo)
 
                for (i = 0; i < lo->ldo_stripenr; i++) {
                        if (lo->ldo_stripe[i])
-                               lu_object_put(env, &lo->ldo_stripe[i]->do_lu);
+                               dt_object_put(env, lo->ldo_stripe[i]);
                }
 
                len = sizeof(struct dt_object *) * lo->ldo_stripes_allocated;