summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-03 14:54:48 +0000
committerbde <bde@FreeBSD.org>1995-12-03 14:54:48 +0000
commit64a1fca498baa82452b7832f03fb52d55b65861e (patch)
treea9998e1f2bc07a055eec218c76160973d186c314 /sys/fs/nullfs
parent1a0a9cf4f5008de06188ddc5eefe1b6e156a792b (diff)
downloadFreeBSD-src-64a1fca498baa82452b7832f03fb52d55b65861e.zip
FreeBSD-src-64a1fca498baa82452b7832f03fb52d55b65861e.tar.gz
Added prototypes.
Removed some unnecessary #includes.
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r--sys/fs/nullfs/null_subr.c11
-rw-r--r--sys/fs/nullfs/null_vfsops.c25
-rw-r--r--sys/fs/nullfs/null_vnops.c11
3 files changed, 41 insertions, 6 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c
index dc18d19..e5fa590 100644
--- a/sys/fs/nullfs/null_subr.c
+++ b/sys/fs/nullfs/null_subr.c
@@ -35,7 +35,7 @@
*
* @(#)null_subr.c 8.4 (Berkeley) 1/21/94
*
- * $Id: null_subr.c,v 1.3 1994/10/02 17:48:14 phk Exp $
+ * $Id: null_subr.c,v 1.4 1995/12/03 14:38:49 bde Exp $
*/
#include <sys/param.h>
@@ -48,6 +48,8 @@
#include <sys/malloc.h>
#include <miscfs/nullfs/null.h>
+extern int nullfs_init __P((void));
+
#define LOG2_SIZEVNODE 7 /* log2(sizeof struct vnode) */
#define NNULLNODECACHE 16
#define NULL_NHASH(vp) ((((u_long)vp)>>LOG2_SIZEVNODE) & (NNULLNODECACHE-1))
@@ -70,6 +72,13 @@ struct null_node_cache {
static struct null_node_cache null_node_cache[NNULLNODECACHE];
+static int null_node_alloc __P((struct mount *mp, struct vnode *lowervp,
+ struct vnode **vpp));
+static struct vnode *
+ null_node_find __P((struct mount *mp, struct vnode *lowervp));
+static struct null_node_cache *
+ null_node_hash __P((struct vnode *lowervp));
+
/*
* Initialise cache headers
*/
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index eb1a192..b6ebc6c 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -36,7 +36,7 @@
* @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94
*
* @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92
- * $Id: null_vfsops.c,v 1.6 1995/03/16 20:23:39 wollman Exp $
+ * $Id: null_vfsops.c,v 1.7 1995/05/30 08:07:01 rgrimes Exp $
*/
/*
@@ -55,6 +55,27 @@
#include <sys/malloc.h>
#include <miscfs/nullfs/null.h>
+extern int nullfs_init __P((void));
+
+extern int nullfs_fhtovp __P((struct mount *mp, struct fid *fidp,
+ struct mbuf *nam, struct vnode **vpp,
+ int *exflagsp, struct ucred **credanonp));
+extern int nullfs_mount __P((struct mount *mp, char *path, caddr_t data,
+ struct nameidata *ndp, struct proc *p));
+extern int nullfs_quotactl __P((struct mount *mp, int cmd, uid_t uid,
+ caddr_t arg, struct proc *p));
+extern int nullfs_root __P((struct mount *mp, struct vnode **vpp));
+extern int nullfs_start __P((struct mount *mp, int flags, struct proc *p));
+extern int nullfs_statfs __P((struct mount *mp, struct statfs *sbp,
+ struct proc *p));
+extern int nullfs_sync __P((struct mount *mp, int waitfor,
+ struct ucred *cred, struct proc *p));
+extern int nullfs_unmount __P((struct mount *mp, int mntflags,
+ struct proc *p));
+extern int nullfs_vget __P((struct mount *mp, ino_t ino,
+ struct vnode **vpp));
+extern int nullfs_vptofh __P((struct vnode *vp, struct fid *fhp));
+
/*
* Mount null layer
*/
@@ -352,8 +373,6 @@ nullfs_vptofh(vp, fhp)
return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp);
}
-int nullfs_init __P((void));
-
struct vfsops null_vfsops = {
nullfs_mount,
nullfs_start,
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index 41e9f70..4013f50 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -35,7 +35,7 @@
*
* @(#)null_vnops.c 8.1 (Berkeley) 6/10/93
*
- * $Id: null_vnops.c,v 1.8 1995/05/30 08:07:03 rgrimes Exp $
+ * $Id: null_vnops.c,v 1.9 1995/11/09 08:14:51 bde Exp $
*/
/*
@@ -173,9 +173,16 @@
#include <sys/buf.h>
#include <miscfs/nullfs/null.h>
-
int null_bug_bypass = 0; /* for debugging: enables bypass printf'ing */
+extern int null_bypass __P((struct vop_generic_args *ap));
+extern int null_bwrite __P((struct vop_bwrite_args *ap));
+extern int null_getattr __P((struct vop_getattr_args *ap));
+extern int null_inactive __P((struct vop_inactive_args *ap));
+extern int null_print __P((struct vop_print_args *ap));
+extern int null_reclaim __P((struct vop_reclaim_args *ap));
+extern int null_strategy __P((struct vop_strategy_args *ap));
+
/*
* This is the 10-Apr-92 bypass routine.
* This version has been optimized for speed, throwing away some
OpenPOWER on IntegriCloud