diff options
author | markm <markm@FreeBSD.org> | 2001-05-01 08:13:21 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-05-01 08:13:21 +0000 |
commit | bcca5847d5e7a197302d7689cd358f5ce6316d0a (patch) | |
tree | a1f5dea8640fa8bdeebec40477b6fdcf33b3e51b /sys/fs | |
parent | 7d3d350edce373e3ec1e8e7fe7d94bb08d031a24 (diff) | |
download | FreeBSD-src-bcca5847d5e7a197302d7689cd358f5ce6316d0a.zip FreeBSD-src-bcca5847d5e7a197302d7689cd358f5ce6316d0a.tar.gz |
Undo part of the tangle of having sys/lock.h and sys/mutex.h included in
other "system" header files.
Also help the deprecation of lockmgr.h by making it a sub-include of
sys/lock.h and removing sys/lockmgr.h form kernel .c files.
Sort sys/*.h includes where possible in affected files.
OK'ed by: bde (with reservations)
Diffstat (limited to 'sys/fs')
32 files changed, 186 insertions, 123 deletions
diff --git a/sys/fs/coda/coda_fbsd.c b/sys/fs/coda/coda_fbsd.c index 8111691..c92b482 100644 --- a/sys/fs/coda/coda_fbsd.c +++ b/sys/fs/coda/coda_fbsd.c @@ -35,12 +35,13 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/conf.h> +#include <sys/fcntl.h> #include <sys/kernel.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <sys/fcntl.h> #include <sys/ucred.h> #include <sys/vnode.h> -#include <sys/conf.h> #include <vm/vm.h> #include <vm/vnode_pager.h> diff --git a/sys/fs/coda/coda_namecache.c b/sys/fs/coda/coda_namecache.c index 729c0ad..3b73a67 100644 --- a/sys/fs/coda/coda_namecache.c +++ b/sys/fs/coda/coda_namecache.c @@ -77,14 +77,12 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/errno.h> +#include <sys/lock.h> #include <sys/malloc.h> #include <sys/ucred.h> -#ifndef insque -#include <sys/systm.h> -#endif /* insque */ - #include <vm/vm.h> #include <vm/vm_object.h> diff --git a/sys/fs/coda/coda_psdev.c b/sys/fs/coda/coda_psdev.c index e6ba198..0d8560f 100644 --- a/sys/fs/coda/coda_psdev.c +++ b/sys/fs/coda/coda_psdev.c @@ -58,15 +58,16 @@ extern int coda_nc_initialized; /* Set if cache has been initialized */ #include <sys/param.h> #include <sys/systm.h> +#include <sys/ioccom.h> #include <sys/kernel.h> -#include <sys/proc.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <net/radix.h> -#include <sys/socket.h> +#include <sys/file.h> /* must come after sys/malloc.h */ #include <sys/mount.h> -#include <sys/file.h> -#include <sys/ioccom.h> +#include <sys/mutex.h> #include <sys/poll.h> +#include <sys/proc.h> +#include <sys/socket.h> #include <coda/coda.h> #include <coda/cnode.h> diff --git a/sys/fs/coda/coda_subr.c b/sys/fs/coda/coda_subr.c index 8c4406b..84546c1 100644 --- a/sys/fs/coda/coda_subr.c +++ b/sys/fs/coda/coda_subr.c @@ -59,10 +59,10 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <net/radix.h> -#include <sys/socket.h> #include <sys/mount.h> +#include <sys/socket.h> #include <coda/coda.h> #include <coda/cnode.h> diff --git a/sys/fs/coda/coda_venus.c b/sys/fs/coda/coda_venus.c index 1784e2f..022009e 100644 --- a/sys/fs/coda/coda_venus.c +++ b/sys/fs/coda/coda_venus.c @@ -33,10 +33,12 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/fcntl.h> +#include <sys/ioccom.h> +#include <sys/lock.h> #include <sys/malloc.h> +#include <sys/mutex.h> #include <sys/proc.h> -#include <sys/ioccom.h> -#include <sys/fcntl.h> #include <coda/coda.h> #include <coda/cnode.h> diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c index 437e9fd..a640cf4 100644 --- a/sys/fs/coda/coda_vfsops.c +++ b/sys/fs/coda/coda_vfsops.c @@ -48,14 +48,14 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/conf.h> #include <sys/kernel.h> -#include <sys/proc.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <sys/conf.h> +#include <sys/mount.h> #include <sys/namei.h> -#include <net/radix.h> +#include <sys/proc.h> #include <sys/socket.h> -#include <sys/mount.h> #include <coda/coda.h> #include <coda/cnode.h> diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index 2619917..1444fb2 100644 --- a/sys/fs/coda/coda_vnops.c +++ b/sys/fs/coda/coda_vnops.c @@ -47,18 +47,19 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/acct.h> +#include <sys/errno.h> +#include <sys/fcntl.h> #include <sys/kernel.h> -#include <sys/proc.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <net/radix.h> -#include <sys/socket.h> +#include <sys/file.h> /* Must come after sys/malloc.h */ #include <sys/mount.h> -#include <sys/errno.h> -#include <sys/acct.h> -#include <sys/file.h> -#include <sys/fcntl.h> -#include <sys/uio.h> +#include <sys/mutex.h> #include <sys/namei.h> +#include <sys/proc.h> +#include <sys/socket.h> +#include <sys/uio.h> #include <vm/vm.h> #include <vm/vm_object.h> diff --git a/sys/fs/deadfs/dead_vnops.c b/sys/fs/deadfs/dead_vnops.c index 8de5c57..9911453 100644 --- a/sys/fs/deadfs/dead_vnops.c +++ b/sys/fs/deadfs/dead_vnops.c @@ -38,10 +38,9 @@ #include <sys/systm.h> #include <sys/kernel.h> #include <sys/lock.h> -#include <sys/vnode.h> +#include <sys/mutex.h> #include <sys/poll.h> - -#include <machine/mutex.h> +#include <sys/vnode.h> static int chkvnlock __P((struct vnode *)); /* diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c index c7814a2..4dfd0e5 100644 --- a/sys/fs/devfs/devfs_devs.c +++ b/sys/fs/devfs/devfs_devs.c @@ -33,13 +33,14 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/dirent.h> #include <sys/conf.h> -#include <sys/vnode.h> -#include <sys/malloc.h> -#include <sys/sysctl.h> +#include <sys/dirent.h> #include <sys/kernel.h> #include <sys/lock.h> +#include <sys/malloc.h> +#include <sys/proc.h> +#include <sys/sysctl.h> +#include <sys/vnode.h> #include <machine/atomic.h> diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index f5609b9..69ec9b2 100644 --- a/sys/fs/devfs/devfs_vfsops.c +++ b/sys/fs/devfs/devfs_vfsops.c @@ -39,11 +39,12 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> -#include <sys/vnode.h> -#include <net/radix.h> -#include <sys/socket.h> -#include <sys/mount.h> +#include <sys/lock.h> #include <sys/malloc.h> +#include <sys/mount.h> +#include <sys/proc.h> +#include <sys/socket.h> +#include <sys/vnode.h> #include <fs/devfs/devfs.h> diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 41cdc18..b0f2886 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -37,16 +37,17 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/kernel.h> -#include <sys/time.h> #include <sys/conf.h> -#include <sys/vnode.h> +#include <sys/dirent.h> +#include <sys/kernel.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <net/radix.h> -#include <sys/socket.h> #include <sys/mount.h> #include <sys/namei.h> -#include <sys/dirent.h> +#include <sys/proc.h> +#include <sys/socket.h> +#include <sys/time.h> +#include <sys/vnode.h> #include <fs/devfs/devfs.h> diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c index e93ad50..900e1de 100644 --- a/sys/fs/fdescfs/fdesc_vfsops.c +++ b/sys/fs/fdescfs/fdesc_vfsops.c @@ -44,15 +44,16 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/filedesc.h> #include <sys/kernel.h> +#include <sys/lock.h> +#include <sys/malloc.h> +#include <sys/mount.h> #include <sys/proc.h> #include <sys/resourcevar.h> -#include <sys/filedesc.h> -#include <sys/vnode.h> -#include <net/radix.h> #include <sys/socket.h> -#include <sys/mount.h> -#include <sys/malloc.h> +#include <sys/vnode.h> + #include <miscfs/fdesc/fdesc.h> static MALLOC_DEFINE(M_FDESCMNT, "FDESC mount", "FDESC mount structure"); diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c index 5846ac7..065e0a8 100644 --- a/sys/fs/fdescfs/fdesc_vnops.c +++ b/sys/fs/fdescfs/fdesc_vnops.c @@ -44,19 +44,20 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/proc.h> -#include <sys/kernel.h> /* boottime */ +#include <sys/conf.h> +#include <sys/dirent.h> #include <sys/filedesc.h> -#include <sys/vnode.h> +#include <sys/kernel.h> /* boottime */ +#include <sys/lock.h> #include <sys/malloc.h> -#include <sys/file.h> -#include <sys/stat.h> -#include <net/radix.h> -#include <sys/socket.h> +#include <sys/file.h> /* Must come after sys/malloc.h */ #include <sys/mount.h> #include <sys/namei.h> -#include <sys/dirent.h> -#include <sys/conf.h> +#include <sys/proc.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/vnode.h> + #include <miscfs/fdesc/fdesc.h> #define FDL_WANT 0x01 diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index fe5f988..88f1584 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -41,9 +41,12 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> -#include <sys/vnode.h> -#include <sys/mount.h> +#include <sys/lock.h> #include <sys/malloc.h> +#include <sys/mount.h> +#include <sys/proc.h> +#include <sys/vnode.h> + #include <miscfs/nullfs/null.h> #define LOG2_SIZEVNODE 7 /* log2(sizeof struct vnode) */ diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index c9a6801..dfaefe3 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -47,10 +47,13 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <sys/vnode.h> #include <sys/mount.h> #include <sys/namei.h> +#include <sys/proc.h> +#include <sys/vnode.h> + #include <miscfs/nullfs/null.h> static MALLOC_DEFINE(M_NULLFSMNT, "NULLFS mount", "NULLFS mount structure"); diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c index e9fded7..d37ef73 100644 --- a/sys/fs/nullfs/null_vnops.c +++ b/sys/fs/nullfs/null_vnops.c @@ -175,13 +175,16 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/kernel.h> #include <sys/conf.h> -#include <sys/sysctl.h> -#include <sys/vnode.h> +#include <sys/kernel.h> +#include <sys/lock.h> +#include <sys/malloc.h> #include <sys/mount.h> +#include <sys/mutex.h> #include <sys/namei.h> -#include <sys/malloc.h> +#include <sys/sysctl.h> +#include <sys/vnode.h> + #include <miscfs/nullfs/null.h> #include <vm/vm.h> diff --git a/sys/fs/nwfs/nwfs_node.c b/sys/fs/nwfs/nwfs_node.c index 3ba41a8..9c1f086 100644 --- a/sys/fs/nwfs/nwfs_node.c +++ b/sys/fs/nwfs/nwfs_node.c @@ -34,17 +34,20 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> -#include <sys/time.h> -#include <sys/proc.h> -#include <sys/mount.h> -#include <sys/vnode.h> +#include <sys/lock.h> #include <sys/malloc.h> +#include <sys/mount.h> +#include <sys/mutex.h> +#include <sys/proc.h> +#include <sys/queue.h> #include <sys/sysctl.h> +#include <sys/time.h> +#include <sys/vnode.h> + #include <vm/vm.h> #include <vm/vm_extern.h> #include <vm/vm_page.h> #include <vm/vm_object.h> -#include <sys/queue.h> #include <netncp/ncp.h> #include <netncp/ncp_conn.h> diff --git a/sys/fs/portalfs/portal_vfsops.c b/sys/fs/portalfs/portal_vfsops.c index 3f7903c..5146456 100644 --- a/sys/fs/portalfs/portal_vfsops.c +++ b/sys/fs/portalfs/portal_vfsops.c @@ -44,17 +44,19 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/kernel.h> -#include <sys/proc.h> +#include <sys/domain.h> #include <sys/filedesc.h> -#include <sys/file.h> -#include <sys/vnode.h> -#include <sys/mount.h> +#include <sys/kernel.h> +#include <sys/lock.h> #include <sys/malloc.h> +#include <sys/file.h> /* Must come after sys/malloc.h */ +#include <sys/mount.h> +#include <sys/proc.h> +#include <sys/protosw.h> #include <sys/socket.h> #include <sys/socketvar.h> -#include <sys/protosw.h> -#include <sys/domain.h> +#include <sys/vnode.h> + #include <miscfs/portal/portal.h> static MALLOC_DEFINE(M_PORTALFSMNT, "PORTAL mount", "PORTAL mount structure"); diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c index f0a5427..5818758 100644 --- a/sys/fs/procfs/procfs_ctl.c +++ b/sys/fs/procfs/procfs_ctl.c @@ -40,11 +40,14 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/lock.h> +#include <sys/mutex.h> #include <sys/proc.h> -#include <sys/vnode.h> #include <sys/ptrace.h> #include <sys/signalvar.h> #include <sys/sx.h> +#include <sys/vnode.h> + #include <miscfs/procfs/procfs.h> #include <vm/vm.h> diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c index 9487569..d80e28c 100644 --- a/sys/fs/procfs/procfs_dbregs.c +++ b/sys/fs/procfs/procfs_dbregs.c @@ -44,11 +44,16 @@ */ #include <sys/param.h> +#include <sys/systm.h> +#include <sys/lock.h> +#include <sys/mutex.h> #include <sys/proc.h> #include <sys/vnode.h> -#include <sys/systm.h> + #include <machine/reg.h> + #include <miscfs/procfs/procfs.h> + #include <vm/vm.h> int diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c index 6249f52..7e2ff52 100644 --- a/sys/fs/procfs/procfs_fpregs.c +++ b/sys/fs/procfs/procfs_fpregs.c @@ -41,11 +41,16 @@ */ #include <sys/param.h> +#include <sys/systm.h> +#include <sys/lock.h> +#include <sys/mutex.h> #include <sys/proc.h> #include <sys/vnode.h> -#include <sys/systm.h> + #include <machine/reg.h> + #include <miscfs/procfs/procfs.h> + #include <vm/vm.h> int diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c index 1caa630..5e4a30c 100644 --- a/sys/fs/procfs/procfs_map.c +++ b/sys/fs/procfs/procfs_map.c @@ -41,12 +41,13 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/lock.h> #include <sys/proc.h> #include <sys/vnode.h> + #include <miscfs/procfs/procfs.h> #include <vm/vm.h> -#include <sys/lock.h> #include <vm/pmap.h> #include <vm/vm_map.h> #include <vm/vm_page.h> diff --git a/sys/fs/procfs/procfs_mem.c b/sys/fs/procfs/procfs_mem.c index 6f2c8cb..3a2f8d2 100644 --- a/sys/fs/procfs/procfs_mem.c +++ b/sys/fs/procfs/procfs_mem.c @@ -47,20 +47,22 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/lock.h> #include <sys/proc.h> +#include <sys/ptrace.h> +#include <sys/user.h> #include <sys/vnode.h> + #include <miscfs/procfs/procfs.h> + #include <vm/vm.h> #include <vm/vm_param.h> -#include <sys/lock.h> #include <vm/pmap.h> #include <vm/vm_extern.h> #include <vm/vm_map.h> #include <vm/vm_kern.h> #include <vm/vm_object.h> #include <vm/vm_page.h> -#include <sys/user.h> -#include <sys/ptrace.h> static int procfs_rwmem __P((struct proc *curp, struct proc *p, struct uio *uio)); diff --git a/sys/fs/procfs/procfs_regs.c b/sys/fs/procfs/procfs_regs.c index 12efe85..ba58517 100644 --- a/sys/fs/procfs/procfs_regs.c +++ b/sys/fs/procfs/procfs_regs.c @@ -41,14 +41,19 @@ */ #include <sys/param.h> +#include <sys/systm.h> +#include <sys/lock.h> +#include <sys/mutex.h> #include <sys/proc.h> #include <sys/vnode.h> -#include <sys/systm.h> + #include <machine/reg.h> -#include <miscfs/procfs/procfs.h> + #include <vm/vm.h> #include <vm/vm_extern.h> +#include <miscfs/procfs/procfs.h> + int procfs_doregs(curp, p, pfs, uio) struct proc *curp; diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c index 40e3fbe..b29b4a9 100644 --- a/sys/fs/procfs/procfs_status.c +++ b/sys/fs/procfs/procfs_status.c @@ -42,18 +42,21 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/exec.h> +#include <sys/jail.h> +#include <sys/lock.h> #include <sys/malloc.h> +#include <sys/mutex.h> #include <sys/proc.h> -#include <sys/jail.h> -#include <sys/vnode.h> -#include <sys/tty.h> #include <sys/resourcevar.h> -#include <miscfs/procfs/procfs.h> +#include <sys/tty.h> +#include <sys/vnode.h> #include <vm/vm.h> #include <vm/pmap.h> #include <vm/vm_param.h> -#include <sys/exec.h> + +#include <miscfs/procfs/procfs.h> #define DOCHECK() do { if (ps >= psbuf+sizeof(psbuf)) goto bailout; } while (0) int diff --git a/sys/fs/procfs/procfs_subr.c b/sys/fs/procfs/procfs_subr.c index b960b13..64adecb 100644 --- a/sys/fs/procfs/procfs_subr.c +++ b/sys/fs/procfs/procfs_subr.c @@ -41,13 +41,14 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/sysctl.h> +#include <sys/lock.h> +#include <sys/malloc.h> +#include <sys/mount.h> +#include <sys/mutex.h> #include <sys/proc.h> -#include <net/radix.h> #include <sys/socket.h> -#include <sys/mount.h> +#include <sys/sysctl.h> #include <sys/vnode.h> -#include <sys/malloc.h> #include <miscfs/procfs/procfs.h> diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index f7201fb..2e7b7cb 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -45,23 +45,28 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/time.h> +#include <sys/dirent.h> +#include <sys/fcntl.h> #include <sys/kernel.h> #include <sys/lock.h> -#include <sys/fcntl.h> +#include <sys/malloc.h> +#include <sys/mount.h> +#include <sys/mutex.h> +#include <sys/namei.h> +#include <sys/pioctl.h> #include <sys/proc.h> #include <sys/signalvar.h> +#include <sys/socket.h> #include <sys/sx.h> -#include <sys/vnode.h> +#include <sys/time.h> #include <sys/uio.h> -#include <sys/mount.h> -#include <sys/namei.h> -#include <sys/dirent.h> -#include <sys/malloc.h> +#include <sys/vnode.h> + #include <machine/reg.h> + #include <vm/vm_zone.h> + #include <miscfs/procfs/procfs.h> -#include <sys/pioctl.h> static int procfs_access __P((struct vop_access_args *)); static int procfs_badop __P((void)); diff --git a/sys/fs/smbfs/smbfs_node.c b/sys/fs/smbfs/smbfs_node.c index 0d98605..35be6a3 100644 --- a/sys/fs/smbfs/smbfs_node.c +++ b/sys/fs/smbfs/smbfs_node.c @@ -34,22 +34,24 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> -#include <sys/time.h> -#include <sys/proc.h> -#include <sys/mount.h> -#include <sys/vnode.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <sys/sysctl.h> -#include <vm/vm.h> -#include <vm/vm_extern.h> -/*#include <vm/vm_page.h> -#include <vm/vm_object.h>*/ +#include <sys/mount.h> +#include <sys/proc.h> #include <sys/queue.h> +#include <sys/sysctl.h> +#include <sys/time.h> +#include <sys/vnode.h> #include <netsmb/smb.h> #include <netsmb/smb_conn.h> #include <netsmb/smb_subr.h> +#include <vm/vm.h> +#include <vm/vm_extern.h> +/*#include <vm/vm_page.h> +#include <vm/vm_object.h>*/ + #include <fs/smbfs/smbfs.h> #include <fs/smbfs/smbfs_node.h> #include <fs/smbfs/smbfs_subr.h> diff --git a/sys/fs/umapfs/umap_subr.c b/sys/fs/umapfs/umap_subr.c index 9b9806e..1f94d50 100644 --- a/sys/fs/umapfs/umap_subr.c +++ b/sys/fs/umapfs/umap_subr.c @@ -40,9 +40,11 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/vnode.h> -#include <sys/mount.h> #include <sys/malloc.h> +#include <sys/mount.h> +#include <sys/proc.h> +#include <sys/vnode.h> + #include <miscfs/umapfs/umap.h> #define LOG2_SIZEVNODE 7 /* log2(sizeof struct vnode) */ diff --git a/sys/fs/umapfs/umap_vfsops.c b/sys/fs/umapfs/umap_vfsops.c index abd1b07..e86467d 100644 --- a/sys/fs/umapfs/umap_vfsops.c +++ b/sys/fs/umapfs/umap_vfsops.c @@ -46,10 +46,13 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> -#include <sys/vnode.h> +#include <sys/lock.h> +#include <sys/malloc.h> #include <sys/mount.h> +#include <sys/mutex.h> #include <sys/namei.h> -#include <sys/malloc.h> +#include <sys/vnode.h> + #include <miscfs/umapfs/umap.h> static MALLOC_DEFINE(M_UMAPFSMNT, "UMAP mount", "UMAP mount structure"); diff --git a/sys/fs/umapfs/umap_vnops.c b/sys/fs/umapfs/umap_vnops.c index 669a9ae..5bf29c8 100644 --- a/sys/fs/umapfs/umap_vnops.c +++ b/sys/fs/umapfs/umap_vnops.c @@ -44,11 +44,13 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> -#include <sys/sysctl.h> -#include <sys/vnode.h> +#include <sys/lock.h> +#include <sys/malloc.h> #include <sys/mount.h> #include <sys/namei.h> -#include <sys/malloc.h> +#include <sys/sysctl.h> +#include <sys/vnode.h> + #include <miscfs/umapfs/umap.h> #include <miscfs/nullfs/null.h> diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index 71eae9c..b4f2802 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -40,20 +40,23 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/kernel.h> -#include <sys/vnode.h> -#include <sys/namei.h> -#include <sys/malloc.h> #include <sys/fcntl.h> #include <sys/file.h> #include <sys/filedesc.h> +#include <sys/kernel.h> +#include <sys/lock.h> +#include <sys/malloc.h> #include <sys/module.h> #include <sys/mount.h> +#include <sys/namei.h> #include <sys/stat.h> +#include <sys/vnode.h> + #include <vm/vm.h> #include <vm/vm_extern.h> /* for vnode_pager_setsize */ #include <vm/vm_zone.h> #include <vm/vm_object.h> /* for vm cache coherency */ + #include <miscfs/union/union.h> #include <sys/proc.h> |