summaryrefslogtreecommitdiff
path: root/sys/ufs/lfs/lfs_segment.c
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-12-28 20:48:19 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-12-28 20:48:19 +0000
commit1b49ee3eb8c877858a1f6aed46946e85333e60d6 (patch)
tree6384a28ddd41cb6cdd7d6ac636ee373a55a31ff8 /sys/ufs/lfs/lfs_segment.c
parent3f0c4ca6296d5ec4706edf6976987328f125adb2 (diff)
Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes.
No functional change, okay tedu@.
Diffstat (limited to 'sys/ufs/lfs/lfs_segment.c')
-rw-r--r--sys/ufs/lfs/lfs_segment.c8
1 files changed, 4 insertions, 4 deletions
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;