]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: shrink struct vnode to 448 bytes on LP64
authorMateusz Guzik <mjg@FreeBSD.org>
Sun, 21 Feb 2021 19:48:49 +0000 (19:48 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Sun, 21 Feb 2021 21:07:14 +0000 (21:07 +0000)
commit2443068d486020ed9a4250e0d3b28168c40f741a
treeb98a63da6fdaad9e83d6a53583df3cf5a048a736
parentee9b37ae5c115c41835119bb5c9d2e14c83abd65
vfs: shrink struct vnode to 448 bytes on LP64

... by moving v_hash into a 4 byte hole.

Combined with several previous size reductions this makes the size small
enough to fit 9 vnodes per page as opposed to 8.

Add a compilation time assert so that this is not unknowingly worsened.

Note the structure still remains bigger than it should be.
sys/sys/vnode.h