summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-08-13 10:05:50 +0000
committerphk <phk@FreeBSD.org>2002-08-13 10:05:50 +0000
commite4f487f25e655eea952eee59b10d458e56eeb30d (patch)
tree7644f325648e3c87438ca1fef6504d5772e336d2 /sys/nfsclient
parent294097ed71af31961af5ded01883a93b24152d52 (diff)
downloadFreeBSD-src-e4f487f25e655eea952eee59b10d458e56eeb30d.zip
FreeBSD-src-e4f487f25e655eea952eee59b10d458e56eeb30d.tar.gz
Introduce typedefs for the member functions of struct vfsops and employ
these in the main filesystems. This does not change the resulting code but makes the source a little bit more grepable. Sponsored by: DARPA and NAI Labs.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs.h4
-rw-r--r--sys/nfsclient/nfs_vfsops.c13
2 files changed, 7 insertions, 10 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h
index 1be8608..686dd7c 100644
--- a/sys/nfsclient/nfs.h
+++ b/sys/nfsclient/nfs.h
@@ -248,8 +248,8 @@ extern int nfs_debug;
#endif
-int nfs_init(struct vfsconf *vfsp);
-int nfs_uninit(struct vfsconf *vfsp);
+vfs_init_t nfs_init;
+vfs_uninit_t nfs_uninit;
int nfs_mountroot(struct mount *mp, struct thread *td);
int nfs_send(struct socket *, struct sockaddr *, struct mbuf *,
struct nfsreq *);
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index 4ac930e..4c7e599 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -94,14 +94,11 @@ static void nfs_decode_args(struct nfsmount *nmp, struct nfs_args *argp);
static int mountnfs(struct nfs_args *, struct mount *,
struct sockaddr *, char *, char *, struct vnode **,
struct ucred *cred);
-static int nfs_mount(struct mount *mp, char *path, caddr_t data,
- struct nameidata *ndp, struct thread *td);
-static int nfs_unmount(struct mount *mp, int mntflags, struct thread *td);
-static int nfs_root(struct mount *mp, struct vnode **vpp);
-static int nfs_statfs(struct mount *mp, struct statfs *sbp,
- struct thread *td);
-static int nfs_sync(struct mount *mp, int waitfor, struct ucred *cred,
- struct thread *td);
+static vfs_mount_t nfs_mount;
+static vfs_unmount_t nfs_unmount;
+static vfs_root_t nfs_root;
+static vfs_statfs_t nfs_statfs;
+static vfs_sync_t nfs_sync;
/*
* nfs vfs operations.
OpenPOWER on IntegriCloud