summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2008-05-26 11:51:20 +0000
committerotto <otto@openbsd.org>2008-05-26 11:51:20 +0000
commit2afbb95aab4962f07104deaf9ab01ece45077a22 (patch)
treeb9b5d191489f8be8d40b55153356daad8423343c
parentLimit to 80 char width and tweak comments for readability. (diff)
downloadwireguard-openbsd-2afbb95aab4962f07104deaf9ab01ece45077a22.tar.xz
wireguard-openbsd-2afbb95aab4962f07104deaf9ab01ece45077a22.zip
reorg fields in structs inodesc and inoinfo to reduce size on some archs; from
mickey; ok millert@
-rw-r--r--sbin/fsck_ffs/fsck.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h
index b9136c673c5..5f7eb42c0d9 100644
--- a/sbin/fsck_ffs/fsck.h
+++ b/sbin/fsck_ffs/fsck.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsck.h,v 1.21 2007/06/25 19:59:55 otto Exp $ */
+/* $OpenBSD: fsck.h,v 1.22 2008/05/26 11:51:20 otto Exp $ */
/* $NetBSD: fsck.h,v 1.13 1996/10/11 20:15:46 thorpej Exp $ */
/*
@@ -77,9 +77,9 @@ union dinode {
* buffer cache structure.
*/
struct bufarea {
+ daddr64_t b_bno;
struct bufarea *b_next; /* free list queue */
struct bufarea *b_prev; /* free list queue */
- daddr64_t b_bno;
int b_size;
int b_errs;
int b_flags;
@@ -131,18 +131,18 @@ struct bufarea *getdatablk(daddr64_t, long);
enum fixstate {DONTKNOW, NOFIX, FIX, IGNORE};
struct inodesc {
- enum fixstate id_fix; /* policy on fixing errors */
+ daddr64_t id_blkno; /* current block number being examined */
+ quad_t id_filesize; /* for DATA nodes, the size of the directory */
int (*id_func) /* function to be applied to blocks of inode */
(struct inodesc *);
+ struct direct *id_dirp; /* for DATA nodes, ptr to current entry */
+ char *id_name; /* for DATA nodes, name to find or enter */
ino_t id_number; /* inode number described */
ino_t id_parent; /* for DATA nodes, their parent */
- daddr64_t id_blkno; /* current block number being examined */
+ enum fixstate id_fix; /* policy on fixing errors */
int id_numfrags; /* number of frags contained in block */
- quad_t id_filesize; /* for DATA nodes, the size of the directory */
int id_loc; /* for DATA nodes, current location in dir */
int id_entryno; /* for DATA nodes, current entry number */
- struct direct *id_dirp; /* for DATA nodes, ptr to current entry */
- char *id_name; /* for DATA nodes, name to find or enter */
char id_type; /* type of descriptor, DATA or ADDR */
};
/* file types */
@@ -192,10 +192,10 @@ struct zlncnt *zlnhead; /* head of zero link count list */
struct inoinfo {
struct inoinfo *i_nexthash; /* next entry in hash chain */
struct inoinfo *i_child, *i_sibling, *i_parentp;
+ size_t i_isize; /* size of inode */
ino_t i_number; /* inode number of this entry */
ino_t i_parent; /* inode number of parent */
ino_t i_dotdot; /* inode number of `..' */
- size_t i_isize; /* size of inode */
u_int i_numblks; /* size of block array in bytes */
daddr64_t i_blks[1]; /* actually longer */
} **inphead, **inpsort;