tmpfs: reorder struct tmpfs_node to shrink it by 8 bytes

The reduction (232 -> 224 bytes) allows UMA to fit one more item (17 -> 18)
per slab as reported in vm.uma.TMPFS_node.keg.ipers.
This commit is contained in:
Mateusz Guzik 2020-11-05 11:24:45 +00:00
parent d3d8ca7425
commit f24aa01f9d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367368

View File

@ -156,7 +156,9 @@ struct tmpfs_node {
* when the node is removed from list and unlocked.
*/
LIST_ENTRY(tmpfs_node) tn_entries; /* (m) */
bool tn_attached; /* (m) */
/* Node identifier. */
ino_t tn_id; /* (c) */
/*
* The node's type. Any of 'VBLK', 'VCHR', 'VDIR', 'VFIFO',
@ -166,8 +168,10 @@ struct tmpfs_node {
*/
enum vtype tn_type; /* (c) */
/* Node identifier. */
ino_t tn_id; /* (c) */
/*
* See the top comment. Reordered here to fill LP64 hole.
*/
bool tn_attached; /* (m) */
/*
* Node's internal status. This is used by several file system