diff options
author | 2005-12-11 20:46:28 +0000 | |
---|---|---|
committer | 2005-12-11 20:46:28 +0000 | |
commit | 2374824dbdc4976b6e5a729ef15420c326cb20a9 (patch) | |
tree | e7c4c3c9748c18ba8e2df59e8c79dc6ed4aa82f6 /sys/ufs/ext2fs/ext2fs_inode.c | |
parent | mention the Fast Ethernet controller chips this driver should support (diff) | |
download | wireguard-openbsd-2374824dbdc4976b6e5a729ef15420c326cb20a9.tar.xz wireguard-openbsd-2374824dbdc4976b6e5a729ef15420c326cb20a9.zip |
inode/dinode separation for ext2fs
Diffstat (limited to 'sys/ufs/ext2fs/ext2fs_inode.c')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_inode.c b/sys/ufs/ext2fs/ext2fs_inode.c index c969759606b..859a2179c9b 100644 --- a/sys/ufs/ext2fs/ext2fs_inode.c +++ b/sys/ufs/ext2fs/ext2fs_inode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_inode.c,v 1.29 2005/10/06 17:43:14 pedro Exp $ */ +/* $OpenBSD: ext2fs_inode.c,v 1.30 2005/12/11 20:46:28 pedro Exp $ */ /* $NetBSD: ext2fs_inode.c,v 1.24 2001/06/19 12:59:18 wiz Exp $ */ /* @@ -200,7 +200,7 @@ ext2fs_update(struct inode *ip, struct timespec *atime, struct timespec *mtime, ip->i_e2fs_uid_high = ip->i_e2fs_uid >> 16; ip->i_e2fs_gid_high = ip->i_e2fs_gid >> 16; - e2fs_isave(&ip->i_e2din, (struct ext2fs_dinode *)cp); + e2fs_isave(ip->i_e2din, (struct ext2fs_dinode *)cp); if (waitfor) return (bwrite(bp)); else { @@ -247,7 +247,7 @@ ext2fs_truncate(struct inode *oip, off_t length, int flags, struct ucred *cred) if (length != 0) panic("ext2fs_truncate: partial truncate of symlink"); #endif - bzero((char *)&oip->i_e2din.e2di_shortlink, + bzero((char *)&oip->i_e2din->e2di_shortlink, (u_int)ext2fs_size(oip)); (void)ext2fs_setsize(oip, 0); oip->i_flag |= IN_CHANGE | IN_UPDATE; |