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