Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/specfs specfs: Reorder struct specnode members to...
details: https://anonhg.NetBSD.org/src/rev/8652f02d3f00
branches: trunk
changeset: 364521:8652f02d3f00
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Mar 28 12:38:04 2022 +0000
description:
specfs: Reorder struct specnode members to save padding.
Shrinks from 40 bytes to 32 bytes on LP64 systems this way.
diffstat:
sys/miscfs/specfs/specdev.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r dc714d194877 -r 8652f02d3f00 sys/miscfs/specfs/specdev.h
--- a/sys/miscfs/specfs/specdev.h Mon Mar 28 12:37:56 2022 +0000
+++ b/sys/miscfs/specfs/specdev.h Mon Mar 28 12:38:04 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: specdev.h,v 1.51 2022/03/28 12:37:46 riastradh Exp $ */
+/* $NetBSD: specdev.h,v 1.52 2022/03/28 12:38:04 riastradh Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -66,8 +66,8 @@
typedef struct specnode {
vnode_t *sn_next;
struct specdev *sn_dev;
+ dev_t sn_rdev;
u_int sn_opencnt; /* # of opens, share of sd_opencnt */
- dev_t sn_rdev;
bool sn_gone;
} specnode_t;
Home |
Main Index |
Thread Index |
Old Index