summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-05-05 09:59:14 +0000
committerphk <phk@FreeBSD.org>2000-05-05 09:59:14 +0000
commit36c3965ff904c2677211575be5bfa7d3afe80d19 (patch)
treedc425a5c4e6ca4b753b2fc7c6c3057c50cbbeb92 /sys/kern
parent5ea491d29e5d066f5e0a88aeb886dbe04c7ada92 (diff)
downloadFreeBSD-src-36c3965ff904c2677211575be5bfa7d3afe80d19.zip
FreeBSD-src-36c3965ff904c2677211575be5bfa7d3afe80d19.tar.gz
Separate the struct bio related stuff out of <sys/buf.h> into
<sys/bio.h>. <sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall not be made a nested include according to bdes teachings on the subject of nested includes. Diskdrivers and similar stuff below specfs::strategy() should no longer need to include <sys/buf.> unless they need caching of data. Still a few bogus uses of struct buf to track down. Repocopy by: peter
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_mib.c1
-rw-r--r--sys/kern/kern_physio.c1
-rw-r--r--sys/kern/kern_shutdown.c1
-rw-r--r--sys/kern/subr_devstat.c1
-rw-r--r--sys/kern/subr_disk.c2
-rw-r--r--sys/kern/subr_disklabel.c1
-rw-r--r--sys/kern/subr_diskmbr.c1
-rw-r--r--sys/kern/subr_diskslice.c2
-rw-r--r--sys/kern/vfs_aio.c1
-rw-r--r--sys/kern/vfs_bio.c1
-rw-r--r--sys/kern/vfs_cluster.c1
-rw-r--r--sys/kern/vfs_default.c1
-rw-r--r--sys/kern/vfs_export.c1
-rw-r--r--sys/kern/vfs_extattr.c1
-rw-r--r--sys/kern/vfs_subr.c1
-rw-r--r--sys/kern/vfs_syscalls.c1
-rw-r--r--sys/kern/vfs_vnops.c1
17 files changed, 17 insertions, 2 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c
index 375b500..35c70fb 100644
--- a/sys/kern/kern_mib.c
+++ b/sys/kern/kern_mib.c
@@ -247,6 +247,7 @@ SYSCTL_INT(_debug_sizeof, OID_AUTO, proc, CTLFLAG_RD,
SYSCTL_INT(_debug_sizeof, OID_AUTO, specinfo, CTLFLAG_RD,
0, sizeof(struct specinfo), "sizeof(struct specinfo)");
+#include <sys/bio.h>
#include <sys/buf.h>
SYSCTL_INT(_debug_sizeof, OID_AUTO, bio, CTLFLAG_RD,
0, sizeof(struct bio), "sizeof(struct bio)");
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index 62df11c..a83cada 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -21,6 +21,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/conf.h>
#include <sys/proc.h>
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index e4a4696..18cd1a4 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -47,6 +47,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/eventhandler.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/reboot.h>
#include <sys/proc.h>
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index c86d16b..5035641 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -31,6 +31,7 @@
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/sysctl.h>
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index cf25c1b..c600d38 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -14,7 +14,7 @@
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
-#include <sys/buf.h>
+#include <sys/bio.h>
#include <sys/conf.h>
#include <sys/disk.h>
#include <sys/malloc.h>
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index fc7fb28..ed68f38 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -41,6 +41,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/conf.h>
#include <sys/disklabel.h>
diff --git a/sys/kern/subr_diskmbr.c b/sys/kern/subr_diskmbr.c
index 13e4387..842fed1 100644
--- a/sys/kern/subr_diskmbr.c
+++ b/sys/kern/subr_diskmbr.c
@@ -40,6 +40,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/conf.h>
#ifdef PC98
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index 1e7d6c4..68df0db 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -52,7 +52,7 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/buf.h>
+#include <sys/bio.h>
#include <sys/conf.h>
#ifdef DEVFS
#include <sys/devfsext.h>
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 0e91fdf..16867cd 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -22,6 +22,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/sysproto.h>
#include <sys/filedesc.h>
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 025d030..93e4620 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -29,6 +29,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/eventhandler.h>
#include <sys/lock.h>
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index caf35c4..e1c05b0 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -42,6 +42,7 @@
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/proc.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/vnode.h>
#include <sys/malloc.h>
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index b362ff1..f478aa2 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -41,6 +41,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/kernel.h>
#include <sys/lock.h>
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 273829b..6620852 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -46,6 +46,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/conf.h>
#include <sys/dirent.h>
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 99084d3..08e2965 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -44,6 +44,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/sysent.h>
#include <sys/malloc.h>
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 273829b..6620852 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -46,6 +46,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/conf.h>
#include <sys/dirent.h>
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 99084d3..08e2965 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -44,6 +44,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/sysent.h>
#include <sys/malloc.h>
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 0df42d9..e8f2713 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -48,6 +48,7 @@
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/vnode.h>
+#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/filio.h>
#include <sys/ttycom.h>
OpenPOWER on IntegriCloud