HomeFreeBSD

pseudofs: Microoptimize struct pfs_node

Description

pseudofs: Microoptimize struct pfs_node

Since 81167243b the size of struct pfs_node is 280 bytes, so the kernel
memory allocator takes memory from 384 bytes sized bucket. However, the
length of the node name is mostly short, e.g., for Linux emulation layer
it is up to 16 bytes. The size of struct pfs_node w/o pfs_name is 152
bytes, i.e., we have 104 bytes left to fit the node name into the 256
bytes-sized bucket.

Reviewed by: des
Differential revision: https://reviews.freebsd.org/D39381
MFC after: 1 month

Details

Provenance
dchaginAuthored on Apr 2 2023, 8:20 AM
Reviewer
des
Differential Revision
D39381: pseudofs: Microoptimize struct pfs_node
Parents
rG7ee18f5aada0: heimdal: Do not build a redundant source file
Branches
Unknown
Tags
Unknown