From 34e7c23fe7069a0a27cf0623c731c13689dfc93a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 7 Apr 2001 17:25:39 +0000 Subject: 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. --- sys/ufs/ffs/fs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') 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 */ -- cgit v1.2.3