Fix a typo where sizeof(daddr_t) was specified instead of sizeof(doff_t).

Now that daddr_t is 64-bit, this caused hash blocks to be allocated
twice as large as they need to be.
This commit is contained in:
Ian Dowse 2002-05-18 18:58:27 +00:00
parent 00b162d018
commit e116910b8d

View file

@ -1062,7 +1062,7 @@ ufsdirhash_recycle(int wanted)
static void
ufsdirhash_init()
{
ufsdirhash_zone = uma_zcreate("DIRHASH", DH_NBLKOFF * sizeof(daddr_t),
ufsdirhash_zone = uma_zcreate("DIRHASH", DH_NBLKOFF * sizeof(doff_t),
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
mtx_init(&ufsdirhash_mtx, "dirhash list", NULL, MTX_DEF);
TAILQ_INIT(&ufsdirhash_list);