diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-04-07 17:25:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-04-07 17:25:39 +0000 |
commit | 34e7c23fe7069a0a27cf0623c731c13689dfc93a (patch) | |
tree | ae2bf75bbcc5aa96eca27988590affb69a52b5f9 /sys/ufs/ffs | |
parent | 8fb021cc46189a2d4349ea0e1257e378ed002033 (diff) |
Reduce the count of fs_sparecon's by 1 for 64 bit architectures
since fs_contigdirs takes 64 bits on those platforms. This fixes
a problem on alpha where "struct fs" grew. A better solution is
to make fs_csp into a pointer and use the remainder for pointer
spares and allocate fs_contigdirs from those. This will happen
some time post-2.9.
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/fs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h index 683a87af728..3719eaba2df 100644 --- a/sys/ufs/ffs/fs.h +++ b/sys/ufs/ffs/fs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fs.h,v 1.9 2001/04/06 20:43:30 gluk Exp $ */ +/* $OpenBSD: fs.h,v 1.10 2001/04/07 17:25:38 millert Exp $ */ /* $NetBSD: fs.h,v 1.6 1995/04/12 21:21:02 mycroft Exp $ */ /* @@ -229,7 +229,11 @@ struct fs { int32_t *fs_maxcluster; /* max cluster in each cyl group */ int32_t fs_cpc; /* cyl per cycle in postbl */ int16_t fs_opostbl[16][8]; /* old rotation block list head */ +#if LONG_BIT == 64 + int32_t fs_sparecon[45]; /* reserved for future constants */ +#else int32_t fs_sparecon[46]; /* reserved for future constants */ +#endif /* these fields used in dirpref routine for optimization */ u_int8_t *fs_contigdirs; /* # of contiguously allocated dirs */ int32_t fs_avgfilesize; /* expected average file size */ |