From 00f4f9dfbacfa1765c7d1671250046a608716573 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 22 May 2006 12:15:31 +0000 Subject: [PATCH] fix defect in ->ls_total accounting, found by Mike --- lustre/obdclass/lu_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1