Whamcloud - gitweb
LU-2145 target: use tgt_ prefix for target function
[fs/lustre-release.git] / lustre / mdt / mdt_handler.c
index 95bfdf9..e1b23e3 100644 (file)
@@ -5753,7 +5753,7 @@ static int mdt_obd_connect(const struct lu_env *env,
                 LASSERT(lcd);
                info->mti_exp = lexp;
                memcpy(lcd->lcd_uuid, cluuid, sizeof lcd->lcd_uuid);
-               rc = lut_client_new(env, lexp);
+               rc = tgt_client_new(env, lexp);
                 if (rc == 0)
                         mdt_export_stats_init(obd, lexp, localdata);
         }
@@ -5855,7 +5855,7 @@ static int mdt_export_cleanup(struct obd_export *exp)
         /* cleanup client slot early */
         /* Do not erase record for recoverable client. */
         if (!(exp->exp_flags & OBD_OPT_FAILOVER) || exp->exp_failed)
-               lut_client_del(&env, exp);
+               tgt_client_del(&env, exp);
         lu_env_fini(&env);
 
         RETURN(rc);
@@ -5898,7 +5898,7 @@ static int mdt_init_export(struct obd_export *exp)
                                      &exp->exp_client_uuid)))
                 RETURN(0);
 
-        rc = lut_client_alloc(exp);
+        rc = tgt_client_alloc(exp);
         if (rc)
                GOTO(err, rc);
 
@@ -5909,7 +5909,7 @@ static int mdt_init_export(struct obd_export *exp)
         RETURN(rc);
 
 err_free:
-       lut_client_free(exp);
+       tgt_client_free(exp);
 err:
        CERROR("%s: Failed to initialize export: rc = %d\n",
               exp->exp_obd->obd_name, rc);
@@ -5931,7 +5931,7 @@ static int mdt_destroy_export(struct obd_export *exp)
                 RETURN(0);
 
         ldlm_destroy_export(exp);
-        lut_client_free(exp);
+        tgt_client_free(exp);
 
         LASSERT(cfs_list_empty(&exp->exp_outstanding_replies));
         LASSERT(cfs_list_empty(&exp->exp_mdt_data.med_open_head));