aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/fs/ext2fs/inode.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-10-13 15:45:43 +0000
committerBruce Evans <bde@FreeBSD.org>1998-10-13 15:45:43 +0000
commitd2165c2f7d8bf2783caa37e8e1e25610740e04fe (patch)
treeb099640f34250d94ccd25e8274264aa1986fa096 /sys/gnu/fs/ext2fs/inode.h
parent202bab39443927344a530fc91a945eb062046fb0 (diff)
downloadsrc-d2165c2f7d8bf2783caa37e8e1e25610740e04fe.tar.gz
src-d2165c2f7d8bf2783caa37e8e1e25610740e04fe.zip
Fixed bloatage of `struct inode'. We used 5 "spare" fields for ext2fs,
but when i_effnlink was added to support soft updates, there was only room for 4 spares. The number of spares was not reduced, so the inode size became 260 (on i386's), or 512 after rounding up by malloc(). Use one spare field in `struct dinode' instead of the 5th spare field in the inode and reduced to 4 spares in the inode so that the size is 256 again. Changed the types of the spares in the inode from int to u_int32_t so that the inode size has more chance of being <= 256 under other arches, and downdated ext2fs to match (it was broken to use ints before rev.1.1).
Notes
Notes: svn path=/head/; revision=40304
Diffstat (limited to 'sys/gnu/fs/ext2fs/inode.h')
-rw-r--r--sys/gnu/fs/ext2fs/inode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/fs/ext2fs/inode.h b/sys/gnu/fs/ext2fs/inode.h
index 76b7b5e2c27e..4b6ca7dfc3eb 100644
--- a/sys/gnu/fs/ext2fs/inode.h
+++ b/sys/gnu/fs/ext2fs/inode.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)inode.h 8.9 (Berkeley) 5/14/95
- * $Id: inode.h,v 1.22 1998/03/26 20:53:58 phk Exp $
+ * $Id: inode.h,v 1.23 1998/07/03 22:17:01 bde Exp $
*/
#ifndef _UFS_UFS_INODE_H_
@@ -92,7 +92,7 @@ struct inode {
doff_t i_offset; /* Offset of free space in directory. */
ino_t i_ino; /* Inode number of found directory. */
u_int32_t i_reclen; /* Size of found directory entry. */
- int i_spare[5]; /* XXX actually non-spare (for ext2fs). */
+ u_int32_t i_spare[4]; /* XXX actually non-spare (for ext2fs). */
/*
* The on-disk dinode itself.
*/