X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdc%2Fmdc_locks.c;h=81bfebc720241c6620c399f84f150ced7be8ed2b;hp=7bceb53bb4bb4d57a11ccaf5b819654476cc4149;hb=4b8518ee4fa542f45fcdaeaec580d858dfcaf137;hpb=dbbcf61d2bdcf62740c1d5c8debaeb6afdfc2261 diff --git a/lustre/mdc/mdc_locks.c b/lustre/mdc/mdc_locks.c index 7bceb53..81bfebc 100644 --- a/lustre/mdc/mdc_locks.c +++ b/lustre/mdc/mdc_locks.c @@ -743,6 +743,12 @@ static int mdc_finish_enqueue(struct obd_export *exp, mdc_set_open_replay_data(NULL, NULL, it); } + if (it_disposition(it, DISP_OPEN_CREATE) && + !it_open_error(DISP_OPEN_CREATE, it)) { + lprocfs_counter_incr(exp->exp_obd->obd_md_stats, + LPROC_MD_CREATE); + } + if (body->mbo_valid & (OBD_MD_FLDIREA | OBD_MD_FLEASIZE)) { void *eadata;