Whamcloud - gitweb
LU-6142 lustre: remove ldt_obd_type field of lu_device_type
[fs/lustre-release.git] / lustre / obdclass / lu_object.c
index adf814b..b6279f0 100644 (file)
@@ -1400,14 +1400,8 @@ void lu_stack_fini(const struct lu_env *env, struct lu_device *top)
 
         for (scan = top; scan != NULL; scan = next) {
                 const struct lu_device_type *ldt = scan->ld_type;
-                struct obd_type             *type;
 
                 next = ldt->ldt_ops->ldto_device_free(env, scan);
-                type = ldt->ldt_obd_type;
-                if (type != NULL) {
-                        type->typ_refcnt--;
-                        class_put_type(type);
-                }
         }
 }