From: nikita Date: Mon, 22 May 2006 12:15:31 +0000 (+0000) Subject: fix defect in ->ls_total accounting, found by Mike X-Git-Tag: v1_8_0_110~486^2~1784 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=00f4f9dfbacfa1765c7d1671250046a608716573;p=fs%2Flustre-release.git fix defect in ->ls_total accounting, found by Mike --- diff --git a/lustre/obdclass/lu_object.c b/lustre/obdclass/lu_object.c index 3b03a27..2bacaf4 100644 --- a/lustre/obdclass/lu_object.c +++ b/lustre/obdclass/lu_object.c @@ -114,6 +114,7 @@ static struct lu_object *lu_object_alloc(const struct lu_context *ctxt, top = s->ls_top_dev->ld_ops->ldo_object_alloc(ctxt, s->ls_top_dev); if (IS_ERR(top)) RETURN(top); + s->ls_total ++; /* * This is the only place where object fid is assigned. It's constant * after this point. @@ -314,7 +315,6 @@ struct lu_object *lu_object_find(const struct lu_context *ctxt, if (IS_ERR(o)) return o; - ++ s->ls_total; LASSERT(lu_fid_eq(lu_object_fid(o), f)); spin_lock(&s->ls_guard);