+ * Free in-memory data for client slot related to export.
+ */
+void lut_client_free(struct obd_export *exp)
+{
+ struct tg_export_data *ted = &exp->exp_target_data;
+ struct lu_target *lut = class_exp2tgt(exp);
+
+ OBD_FREE_PTR(ted->ted_lcd);
+ ted->ted_lcd = NULL;
+ /* Clear bit when lcd is freed */
+ spin_lock(&lut->lut_client_bitmap_lock);
+ if (!test_and_clear_bit(ted->ted_lr_idx, lut->lut_client_bitmap)) {
+ CERROR("%s: client %u bit already clear in bitmap\n",
+ exp->exp_obd->obd_name, ted->ted_lr_idx);
+ LBUG();
+ }
+ spin_unlock(&lut->lut_client_bitmap_lock);
+}
+EXPORT_SYMBOL(lut_client_free);
+
+/**