From 2275a576ecaa3f2e577c869a0711d1dc681b114a Mon Sep 17 00:00:00 2001 From: braam Date: Tue, 19 Aug 2003 07:08:47 +0000 Subject: [PATCH] - more small fixes for pre-creation, to help bzzz make progress. - set o_id as a hint upon creation. --- lustre/osc/osc_create.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 1.8.3.1