Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58e270
)
fix defect in ->ls_total accounting, found by Mike
author
nikita
<nikita>
Mon, 22 May 2006 12:15:31 +0000
(12:15 +0000)
committer
nikita
<nikita>
Mon, 22 May 2006 12:15:31 +0000
(12:15 +0000)
lustre/obdclass/lu_object.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/lu_object.c
b/lustre/obdclass/lu_object.c
index
3b03a27
..
2bacaf4
100644
(file)
--- 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);