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:
mjg 2020-11-05 11:24:45 +00:00
parent 9ee769829a
commit beb725b3a2

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