Date: Tue, 13 Oct 1998 08:45:44 -0700 (PDT) From: Bruce Evans <bde@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/gnu/ext2fs ext2_extern.h ext2_fs.h ext2_linux_balloc.c src/sys/ufs/ufs inode.h Message-ID: <199810131545.IAA14792@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 1998/10/13 08:45:43 PDT
Modified files:
sys/gnu/ext2fs ext2_extern.h ext2_fs.h
ext2_linux_balloc.c
sys/ufs/ufs inode.h
Log:
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).
Revision Changes Path
1.21 +2 -2 src/sys/gnu/ext2fs/ext2_extern.h
1.4 +2 -2 src/sys/gnu/ext2fs/ext2_fs.h
1.9 +2 -2 src/sys/gnu/ext2fs/ext2_linux_balloc.c
1.24 +2 -2 src/sys/ufs/ufs/inode.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810131545.IAA14792>
