From 1b49ee3eb8c877858a1f6aed46946e85333e60d6 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Wed, 28 Dec 2005 20:48:19 +0000 Subject: Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes. No functional change, okay tedu@. --- sys/ufs/lfs/lfs_segment.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/ufs/lfs/lfs_segment.c') diff --git a/sys/ufs/lfs/lfs_segment.c b/sys/ufs/lfs/lfs_segment.c index 18e38f828d7..05c7ed623b8 100644 --- a/sys/ufs/lfs/lfs_segment.c +++ b/sys/ufs/lfs/lfs_segment.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lfs_segment.c,v 1.13 2005/02/17 18:07:37 jfb Exp $ */ +/* $OpenBSD: lfs_segment.c,v 1.14 2005/12/28 20:48:18 pedro Exp $ */ /* $NetBSD: lfs_segment.c,v 1.4 1996/02/09 22:28:54 christos Exp $ */ /* @@ -622,10 +622,10 @@ lfs_updatemeta(sp) ip = VTOI(vp); switch (num) { case 0: - ip->i_ffs_db[lbn] = off; + ip->i_ffs1_db[lbn] = off; break; case 1: - ip->i_ffs_ib[a[0].in_off] = off; + ip->i_ffs1_ib[a[0].in_off] = off; break; default: ap = &a[num - 1]; @@ -637,7 +637,7 @@ lfs_updatemeta(sp) * to get counted for the inode. */ if (bp->b_blkno == -1 && !(bp->b_flags & B_CACHE)) { - ip->i_ffs_blocks += fsbtodb(fs, 1); + ip->i_ffs1_blocks += fsbtodb(fs, 1); fs->lfs_bfree -= fragstodb(fs, fs->lfs_frag); } ((ufs_daddr_t *)bp->b_data)[ap->in_off] = off; -- cgit v1.2.3