summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2012-03-28 20:49:11 +0000
committermckusick <mckusick@FreeBSD.org>2012-03-28 20:49:11 +0000
commit9a7982e5a0267c0421856f3a43a1ae75880058f3 (patch)
treee4296e1e7484307c80036dcfa1043b1869febf17 /sys/sys/conf.h
parent4d38be64d75540ce84d18b307ffc130ac5d5f2f9 (diff)
downloadFreeBSD-src-9a7982e5a0267c0421856f3a43a1ae75880058f3.zip
FreeBSD-src-9a7982e5a0267c0421856f3a43a1ae75880058f3.tar.gz
Keep track of the mount point associated with a special device
to enable the collection of counts of synchronous and asynchronous reads and writes for its associated filesystem. The counts are displayed using `mount -v'. Ensure that buffers used for paging indicate the vnode from which they are operating so that counts of paging I/O operations from the filesystem are collected. This checkin only adds the setting of the mount point for the UFS/FFS filesystem, but it would be trivial to add the setting and clearing of the mount point at filesystem mount/unmount time for other filesystems too. Reviewed by: kib
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r--sys/sys/conf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 0a12124..49bb3d4 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -52,7 +52,7 @@ struct cdevsw;
struct file;
struct cdev {
- void *__si_reserved;
+ void *si_spare0;
u_int si_flags;
#define SI_ETERNAL 0x0001 /* never destroyed */
#define SI_ALIAS 0x0002 /* carrier of alias name */
@@ -78,7 +78,7 @@ struct cdev {
LIST_HEAD(, cdev) si_children;
LIST_ENTRY(cdev) si_siblings;
struct cdev *si_parent;
- void *si_spare0;
+ struct mount *si_mountpt;
void *si_drv1, *si_drv2;
struct cdevsw *si_devsw;
int si_iosize_max; /* maximum I/O size (for physio &al) */
OpenPOWER on IntegriCloud