summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-06-23 02:14:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-06-23 02:14:41 +0000
commit29a9d7776db7cbab30bc2d6af24d069b147587f5 (patch)
tree06b99f878537fc01966c36dbcc53fb50804e01e9 /sys/ufs
parent7a6687eb64e6597c95207ad1d28b714e510d014c (diff)
remove obsolete vtrace guts; art@
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ext2fs/ext2fs_bmap.c6
-rw-r--r--sys/ufs/ext2fs/ext2fs_inode.c9
-rw-r--r--sys/ufs/ffs/ffs_inode.c9
-rw-r--r--sys/ufs/ufs/ufs_bmap.c6
4 files changed, 8 insertions, 22 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_bmap.c b/sys/ufs/ext2fs/ext2fs_bmap.c
index ce8dfa15968..1c2dd292ef6 100644
--- a/sys/ufs/ext2fs/ext2fs_bmap.c
+++ b/sys/ufs/ext2fs/ext2fs_bmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_bmap.c,v 1.4 1999/04/25 00:36:46 millert Exp $ */
+/* $OpenBSD: ext2fs_bmap.c,v 1.5 2000/06/23 02:14:39 mickey Exp $ */
/* $NetBSD: ext2fs_bmap.c,v 1.1 1997/06/11 09:33:46 bouyer Exp $ */
/*
@@ -50,7 +50,6 @@
#include <sys/vnode.h>
#include <sys/mount.h>
#include <sys/resourcevar.h>
-#include <sys/trace.h>
#include <miscfs/specfs/specdev.h>
@@ -188,14 +187,13 @@ ext2fs_bmaparray(vp, bn, bnp, ap, nump, runp)
xap->in_exists = 1;
bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0);
if (bp->b_flags & (B_DONE | B_DELWRI)) {
- trace(TR_BREADHIT, pack(vp, size), metalbn);
+ ;
}
#ifdef DIAGNOSTIC
else if (!daddr)
panic("ext2fs_bmaparry: indirect block not in cache");
#endif
else {
- trace(TR_BREADMISS, pack(vp, size), metalbn);
bp->b_blkno = blkptrtodb(ump, daddr);
bp->b_flags |= B_READ;
VOP_STRATEGY(bp);
diff --git a/sys/ufs/ext2fs/ext2fs_inode.c b/sys/ufs/ext2fs/ext2fs_inode.c
index d97a1290e96..a110763457e 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.8 2000/04/26 23:24:41 jasoni Exp $ */
+/* $OpenBSD: ext2fs_inode.c,v 1.9 2000/06/23 02:14:39 mickey Exp $ */
/* $NetBSD: ext2fs_inode.c,v 1.1 1997/06/11 09:33:56 bouyer Exp $ */
/*
@@ -47,7 +47,6 @@
#include <sys/vnode.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
-#include <sys/trace.h>
#include <sys/resourcevar.h>
#include <vm/vm.h>
@@ -441,11 +440,7 @@ ext2fs_indirtrunc(ip, lbn, dbn, lastbn, level, countp)
*/
vp = ITOV(ip);
bp = getblk(vp, lbn, (int)fs->e2fs_bsize, 0, 0);
- if (bp->b_flags & (B_DONE | B_DELWRI)) {
- /* Braces must be here in case trace evaluates to nothing. */
- trace(TR_BREADHIT, pack(vp, fs->e2fs_bsize), lbn);
- } else {
- trace(TR_BREADMISS, pack(vp, fs->e2fs_bsize), lbn);
+ if (!(bp->b_flags & (B_DONE | B_DELWRI))) {
curproc->p_stats->p_ru.ru_inblock++; /* pay for read */
bp->b_flags |= B_READ;
if (bp->b_bcount > bp->b_bufsize)
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 225ccc23acb..b9f1ad90b8d 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_inode.c,v 1.15 1999/12/06 07:23:21 art Exp $ */
+/* $OpenBSD: ffs_inode.c,v 1.16 2000/06/23 02:14:39 mickey Exp $ */
/* $NetBSD: ffs_inode.c,v 1.10 1996/05/11 18:27:19 mycroft Exp $ */
/*
@@ -45,7 +45,6 @@
#include <sys/vnode.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
-#include <sys/trace.h>
#include <sys/resourcevar.h>
#include <vm/vm.h>
@@ -490,11 +489,7 @@ ffs_indirtrunc(ip, lbn, dbn, lastbn, level, countp)
*/
vp = ITOV(ip);
bp = getblk(vp, lbn, (int)fs->fs_bsize, 0, 0);
- if (bp->b_flags & (B_DONE | B_DELWRI)) {
- /* Braces must be here in case trace evaluates to nothing. */
- trace(TR_BREADHIT, pack(vp, fs->fs_bsize), lbn);
- } else {
- trace(TR_BREADMISS, pack(vp, fs->fs_bsize), lbn);
+ if (!(bp->b_flags & (B_DONE | B_DELWRI))) {
curproc->p_stats->p_ru.ru_inblock++; /* pay for read */
bp->b_flags |= B_READ;
if (bp->b_bcount > bp->b_bufsize)
diff --git a/sys/ufs/ufs/ufs_bmap.c b/sys/ufs/ufs/ufs_bmap.c
index e51cf1a6135..c688fa665b7 100644
--- a/sys/ufs/ufs/ufs_bmap.c
+++ b/sys/ufs/ufs/ufs_bmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_bmap.c,v 1.8 2000/03/13 14:07:54 art Exp $ */
+/* $OpenBSD: ufs_bmap.c,v 1.9 2000/06/23 02:14:39 mickey Exp $ */
/* $NetBSD: ufs_bmap.c,v 1.3 1996/02/09 22:36:00 christos Exp $ */
/*
@@ -48,7 +48,6 @@
#include <sys/vnode.h>
#include <sys/mount.h>
#include <sys/resourcevar.h>
-#include <sys/trace.h>
#include <miscfs/specfs/specdev.h>
@@ -181,14 +180,13 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp)
xap->in_exists = 1;
bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0);
if (bp->b_flags & (B_DONE | B_DELWRI)) {
- trace(TR_BREADHIT, pack(vp, size), metalbn);
+ ;
}
#ifdef DIAGNOSTIC
else if (!daddr)
panic("ufs_bmaparray: indirect block not in cache");
#endif
else {
- trace(TR_BREADMISS, pack(vp, size), metalbn);
bp->b_blkno = blkptrtodb(ump, daddr);
bp->b_flags |= B_READ;
VOP_STRATEGY(bp);