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:
21cb4a3
)
Branch HEAD
author
tianzy
<tianzy>
Thu, 4 Jun 2009 03:49:27 +0000
(
03:49
+0000)
committer
tianzy
<tianzy>
Thu, 4 Jun 2009 03:49:27 +0000
(
03:49
+0000)
fix a minor problem of vfree()
b=19598
i=johann
i=zhenyu.xu
lustre/obdclass/class_hash.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/class_hash.c
b/lustre/obdclass/class_hash.c
index
99998a8
..
6940f0d
100644
(file)
--- a/
lustre/obdclass/class_hash.c
+++ b/
lustre/obdclass/class_hash.c
@@
-147,10
+147,10
@@
lustre_hash_exit(lustre_hash_t *lh)
write_unlock(&lhb->lhb_rwlock);
}
- OBD_VFREE(lh->lh_buckets, sizeof(*lh->lh_buckets) << lh->lh_cur_bits);
LASSERT(atomic_read(&lh->lh_count) == 0);
write_unlock(&lh->lh_rwlock);
+ OBD_VFREE(lh->lh_buckets, sizeof(*lh->lh_buckets) << lh->lh_cur_bits);
OBD_FREE_PTR(lh);
EXIT;
}