diff options
author | bde <bde@FreeBSD.org> | 2004-06-23 06:47:49 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-06-23 06:47:49 +0000 |
commit | 663370f9413d6ac8d722e85a009c71e6c321fdc0 (patch) | |
tree | ac7d9f9438fd89a27b3da45e7d09554b3dc1bc4b /sys | |
parent | 4a8d4eb719106f800297869ddb2f6c66e529bd02 (diff) | |
download | FreeBSD-src-663370f9413d6ac8d722e85a009c71e6c321fdc0.zip FreeBSD-src-663370f9413d6ac8d722e85a009c71e6c321fdc0.tar.gz |
Include <sys/mutex.h> and its prerequisite <sys/lock.h> instead of
depending on namespace pollution in <sys/vnode.h> for the definition
of mutex interfaces used in SOCKBUF_*LOCK().
Sorted includes.
Removed unused includes.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/portalfs/portal_vnops.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c index 169fbaf..261e626 100644 --- a/sys/fs/portalfs/portal_vnops.c +++ b/sys/fs/portalfs/portal_vnops.c @@ -39,24 +39,25 @@ */ #include <sys/param.h> -#include <sys/systm.h> -#include <sys/sysproto.h> -#include <sys/kernel.h> -#include <sys/time.h> -#include <sys/proc.h> -#include <sys/filedesc.h> -#include <sys/vnode.h> #include <sys/fcntl.h> #include <sys/file.h> -#include <sys/stat.h> -#include <sys/mount.h> +#include <sys/kernel.h> +#include <sys/lock.h> #include <sys/malloc.h> -#include <sys/namei.h> #include <sys/mbuf.h> +#include <sys/mount.h> +#include <sys/mutex.h> +#include <sys/namei.h> +#include <sys/proc.h> #include <sys/socket.h> #include <sys/socketvar.h> +#include <sys/stat.h> +#include <sys/sysproto.h> +#include <sys/systm.h> #include <sys/un.h> #include <sys/unpcb.h> +#include <sys/vnode.h> + #include <fs/portalfs/portal.h> static int portal_fileid = PORTAL_ROOTFILEID+1; |