From cdb03f1ca40f9555dd058fe861cfbb6c00a437b9 Mon Sep 17 00:00:00 2001 From: phil Date: Thu, 21 Aug 2003 04:18:18 +0000 Subject: [PATCH] oscc_init should not be calling oscc_precreate, because this happens before recovery. --- lustre/osc/osc_create.c | 5 ----- 1 file changed, 5 deletions(-) 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); } -- 1.8.3.1