HomeFreeBSD

cache: convert the hash from LIST to SLIST

Description

cache: convert the hash from LIST to SLIST

This reduces struct namecache by sizeof(void *).

Negative side is that we have to find the previous element (if any) when
removing an entry, but since we normally don't expect collisions it should be
fine.

Note this adds cache_get_hash calls which can be eliminated.

Details

Provenance
mjgAuthored on Aug 5 2020, 9:25 AM
Parents
rGcf8ac0de8150: cache: reduce zone alignment to 8 bytes
Branches
Unknown
Tags
Unknown

Event Timeline