summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-08-08 23:26:16 +0000
committerderaadt <deraadt@openbsd.org>1996-08-08 23:26:16 +0000
commitcbc03bba438ee9c83baebf064cdf2000325e4dac (patch)
treef3e1c71d2fd948e34e56ddd349695baf1ba741fb /sys/kern/subr_disk.c
parentAllow idle loop to be read even on 486's. (diff)
downloadwireguard-openbsd-cbc03bba438ee9c83baebf064cdf2000325e4dac.tar.xz
wireguard-openbsd-cbc03bba438ee9c83baebf064cdf2000325e4dac.zip
approximate seeks; banshee@gabriella.abattoir.com
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index dc158928dd2..dfed96b2241 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -385,6 +385,7 @@ disk_unbusy(diskp, bcount)
diskp->dk_bytes += bcount;
diskp->dk_xfer++;
}
+ diskp->dk_seek++;
}
/*
@@ -401,6 +402,7 @@ disk_resetstat(diskp)
diskp->dk_xfer = 0;
diskp->dk_bytes = 0;
+ diskp->dk_seek = 0;
t = splclock();
diskp->dk_attachtime = mono_time;