diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-05-02 01:03:06 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-05-02 01:03:06 +0000 |
commit | b59de1dbbb9fec4564d609d8ae32ab3686fe4c98 (patch) | |
tree | 7d5f6fe48b6bb06c95b3e87b8197a47420ec4c75 /sbin/fsck_ffs/fsutil.c | |
parent | d779b4edb000c437c918698656f8b96dd5afd329 (diff) | |
download | FreeBSD-src-b59de1dbbb9fec4564d609d8ae32ab3686fe4c98.zip FreeBSD-src-b59de1dbbb9fec4564d609d8ae32ab3686fe4c98.tar.gz |
Minor bug fixes uncovered while working on UFS2.
They should have no effect on existing systems.
Diffstat (limited to 'sbin/fsck_ffs/fsutil.c')
-rw-r--r-- | sbin/fsck_ffs/fsutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsutil.c b/sbin/fsck_ffs/fsutil.c index 2595b16..65869c3 100644 --- a/sbin/fsck_ffs/fsutil.c +++ b/sbin/fsck_ffs/fsutil.c @@ -195,7 +195,6 @@ getdatablk(ufs_daddr_t blkno, long size) getblk(bp, blkno, size); /* fall through */ foundit: - totalreads++; bp->b_prev->b_next = bp->b_next; bp->b_next->b_prev = bp->b_prev; bp->b_prev = &bufhead; @@ -211,6 +210,7 @@ getblk(struct bufarea *bp, ufs_daddr_t blk, long size) { ufs_daddr_t dblk; + totalreads++; dblk = fsbtodb(&sblock, blk); if (bp->b_bno != dblk) { flush(fswritefd, bp); |