HomeFreeBSD

vfs: swap placement between v_type and v_tag

Description

vfs: swap placement between v_type and v_tag

The former is frequently accessed (e.g., in vfs_cache_lookup) and shares the
cacheline with v_usecount, avoidably adding to cache misses during concurrent
lookup. The latter is almost unused and probably can get garbage-collected.

The struct does not change in size despite enum vs char * discrepancy.
On 64-bit archs there used to be 4 bytes padding after v_type giving 480 bytes
in total.

Details

Provenance
mjgAuthored on
Parents
rS355225: Capitalize some user-visible output messages in
Branches
Unknown
Tags
Unknown