From: phil Date: Thu, 21 Aug 2003 04:18:18 +0000 (+0000) Subject: oscc_init should not be calling oscc_precreate, because this happens X-Git-Tag: v1_7_0_51~2^7~650 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=cdb03f1ca40f9555dd058fe861cfbb6c00a437b9;p=fs%2Flustre-release.git oscc_init should not be calling oscc_precreate, because this happens before recovery. --- diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index e4b92ef0..e8c5d03 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -270,7 +270,6 @@ void oscc_init(struct lustre_handle *exph) { struct obd_export *exp = class_conn2export(exph); struct osc_export_data *oed = &exp->exp_osc_data; - int saved_grow_count; memset(oed, 0, sizeof(*oed)); INIT_LIST_HEAD(&oed->oed_oscc.oscc_list); @@ -285,10 +284,6 @@ void oscc_init(struct lustre_handle *exph) oed->oed_oscc.oscc_last_id = 1; /* XXX the export handle should give the oscc the last object */ /* oed->oed_oscc.oscc_last_id = exph->....; */ - saved_grow_count = oed->oed_oscc.oscc_grow_count; - oed->oed_oscc.oscc_grow_count = oed->oed_oscc.oscc_initial_create_count; - oscc_precreate(&oed->oed_oscc, oed->oed_oscc.oscc_osccd, 0); - oed->oed_oscc.oscc_grow_count = saved_grow_count; class_export_put(exp); }