From: tianzy Date: Thu, 4 Jun 2009 03:49:27 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_0_200~13 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=5d69c15c02e210422f0fe10e471106b4c67bb82b Branch HEAD fix a minor problem of vfree() b=19598 i=johann i=zhenyu.xu --- diff --git a/lustre/obdclass/class_hash.c b/lustre/obdclass/class_hash.c index 99998a8..6940f0d 100644 --- 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; }