From: tianying Date: Tue, 23 Mar 2004 03:46:11 +0000 (+0000) Subject: *b: 2948 X-Git-Tag: 1.2.2~148 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e3ff2ca537b95bf906479d62295769e81b530da7;p=fs%2Flustre-release.git *b: 2948 *r: Robert the pointer of oti->oti_logcookies should be increased when an osc is inactive. --- 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; }