mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
00b162d018
commit
e116910b8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue