From: braam Date: Tue, 19 Aug 2003 07:08:47 +0000 (+0000) Subject: - more small fixes for pre-creation, to help bzzz make progress. X-Git-Tag: v1_7_0_51~2^7~662 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2275a576ecaa3f2e577c869a0711d1dc681b114a;p=fs%2Flustre-release.git - more small fixes for pre-creation, to help bzzz make progress. - set o_id as a hint upon creation. --- diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 56ef7e5..431fd3e 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -186,6 +186,10 @@ void osccd_do_create(struct osc_created *osccd) oscc_list); list_del_init(&oscc->oscc_list); list_add(&oscc->oscc_list, &osccd->osccd_work_list_head); + spin_lock(&oscc->oscc_lock); + oscc->oscc_oa.o_id = oscc->oscc_last_id + oscc->oscc_grow_count; + oscc->oscc_oa.o_valid |= OBD_MD_FLID; + spin_unlock(&oscc->oscc_lock); spin_unlock(&osccd->osccd_lock); rc = osc_real_create(oscc->oscc_exph, &oscc->oscc_oa,