From d837d33d6520fe51fe59a679c2d4b6b03eaffaf8 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Wed, 2 Feb 2022 01:20:55 +0000 Subject: [PATCH 33/39] specfs: Reorder struct specnode members to save padding. Shrinks from 40 bytes to 32 bytes on LP64 systems this way. --- sys/miscfs/specfs/specdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h index c095cf24d2d5..8bb9b4de2b2a 100644 --- a/sys/miscfs/specfs/specdev.h +++ b/sys/miscfs/specfs/specdev.h @@ -66,8 +66,8 @@ typedef struct specnode { vnode_t *sn_next; struct specdev *sn_dev; - u_int sn_opencnt; /* # of opens, share of sd_opencnt */ dev_t sn_rdev; + u_int sn_opencnt; /* # of opens, share of sd_opencnt */ bool sn_gone; } specnode_t;