Use hashdestroy() now that it exists.

This commit is contained in:
Ian Dowse 2002-06-30 03:01:44 +00:00
parent 3423b21c09
commit efdc5c8a0f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99102

View File

@ -73,13 +73,8 @@ ext2_ihashinit()
void
ext2_ihashuninit()
{
struct ihashhead *hp;
for (hp = ihashtbl; hp < &ihashtbl[ihash]; hp++)
if (!LIST_EMPTY(hp))
panic("ext2_ihashuninit: ihash not empty");
free(ihashtbl, M_EXT2IHASH);
ihashtbl = NULL;
hashdestroy(ihashtbl, M_EXT2IHASH, ihash);
mtx_destroy(&ext2_ihash_mtx);
}