+ struct mdd_device *mdd = cookie;
+ struct obd_device *obd = mdd2obd_dev(mdd);
+ /* Each transaction updates lov objids, the credits should be added for
+ * this */
+ int blk, shift = mdd->mdd_dt_conf.ddp_block_shift;
+ blk = ((obd->u.mds.mds_lov_desc.ld_tgt_count * sizeof(obd_id) +
+ (1 << shift) - 1) >> shift) + 1;
+
+ /* add lov objids credits */
+ param->tp_credits += blk * dto_txn_credits[DTO_WRITE_BLOCK] +
+ dto_txn_credits[DTO_WRITE_BASE];
+