Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ufs Reorder struct ufid members to avoid padding (an...



details:   https://anonhg.NetBSD.org/src/rev/592a16130d94
branches:  trunk
changeset: 329270:592a16130d94
user:      martin <martin%NetBSD.org@localhost>
date:      Sat May 17 19:11:40 2014 +0000

description:
Reorder struct ufid members to avoid padding (and save 4 bytes) on some
architectures.

diffstat:

 sys/ufs/ufs/inode.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r a9c3205d47c4 -r 592a16130d94 sys/ufs/ufs/inode.h
--- a/sys/ufs/ufs/inode.h       Sat May 17 14:51:09 2014 +0000
+++ b/sys/ufs/ufs/inode.h       Sat May 17 19:11:40 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inode.h,v 1.67 2014/05/14 13:46:19 martin Exp $        */
+/*     $NetBSD: inode.h,v 1.68 2014/05/17 19:11:40 martin Exp $        */
 
 /*
  * Copyright (c) 1982, 1989, 1993
@@ -295,8 +295,8 @@
 struct ufid {
        u_int16_t ufid_len;     /* Length of structure. */
        u_int16_t ufid_pad;     /* Force 32-bit alignment. */
+       int32_t   ufid_gen;     /* Generation number. */
        ino_t     ufid_ino;     /* File number (ino). */
-       int32_t   ufid_gen;     /* Generation number. */
 };
 #endif /* _KERNEL */
 



Home | Main Index | Thread Index | Old Index