From e3ff2ca537b95bf906479d62295769e81b530da7 Mon Sep 17 00:00:00 2001 From: tianying Date: Tue, 23 Mar 2004 03:46:11 +0000 Subject: [PATCH] *b: 2948 *r: Robert the pointer of oti->oti_logcookies should be increased when an osc is inactive. --- lustre/lov/lov_obd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index a1400f7..b5a2773 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -832,7 +832,7 @@ static int lov_create(struct obd_export *exp, struct obdo *src_oa, if (lsm_new != NULL) { memcpy(lsm_new, lsm, newsize); lsm_new->lsm_stripe_count = obj_alloc; - OBD_FREE(lsm, newsize); + OBD_FREE(lsm, oldsize); lsm = lsm_new; } else { CWARN("'leaking' %d bytes\n", oldsize - newsize); @@ -924,6 +924,8 @@ static int lov_destroy(struct obd_export *exp, struct obdo *oa, if (lov->tgts[loi->loi_ost_idx].active == 0) { CDEBUG(D_HA, "lov idx %d inactive\n", loi->loi_ost_idx); /* Orphan clean up will (someday) fix this up. */ + if (oti != NULL && oa->o_valid & OBD_MD_FLCOOKIE) + oti->oti_logcookies++; continue; } -- 1.8.3.1