summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_var.h
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-08-04 17:12:40 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-08-04 17:12:40 +0000
commit1f0f159650817313e892f426a8cae18ecd0cf104 (patch)
treeee77144c6b50123b9629265469fe7585cb823c7f /sys/nfs/nfs_var.h
parent1b1362ee43be64c7a17b57b9843cc9a5a9744830 (diff)
group all of the on-stack variables that are uses by the nfsm_macros
to keep the data munging "state" into an nfsm_info structure. Each function now has this structure on its stack, and it and its members are now passed around so that the macros/functions can work there magic. this will make removing the nfsm_* macros way easier. Idea/code picked up from DragonflyBSD. Tested by krw@, jacekm@ and myself. OK blambert@.
Diffstat (limited to 'sys/nfs/nfs_var.h')
-rw-r--r--sys/nfs/nfs_var.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/nfs/nfs_var.h b/sys/nfs/nfs_var.h
index e311028ff0d..71d9e46ac2f 100644
--- a/sys/nfs/nfs_var.h
+++ b/sys/nfs/nfs_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_var.h,v 1.51 2009/06/04 01:02:42 blambert Exp $ */
+/* $OpenBSD: nfs_var.h,v 1.52 2009/08/04 17:12:39 thib Exp $ */
/* $NetBSD: nfs_var.h,v 1.3 1996/02/18 11:53:54 fvdl Exp $ */
/*
@@ -42,6 +42,7 @@ struct nfsnode;
struct sillyrename;
struct componentname;
struct nfs_diskless;
+struct nfsm_info;
/* nfs_bio.c */
int nfs_bioread(struct vnode *, struct uio *, int, struct ucred *);
@@ -184,11 +185,7 @@ int nfs_send(struct socket *, struct mbuf *, struct mbuf *,
struct nfsreq *);
int nfs_receive(struct nfsreq *, struct mbuf **, struct mbuf **);
int nfs_reply(struct nfsreq *);
-int nfs_request(struct vnode *, struct mbuf *, int, struct proc *,
- struct ucred *, struct mbuf **, struct mbuf **,
- caddr_t *);
-int nfs_request1(struct nfsreq *, struct ucred *, struct mbuf **,
- struct mbuf **, caddr_t *);
+int nfs_request(struct vnode *, int, struct nfsm_info *);
int nfs_rephead(int, struct nfsrv_descript *, struct nfssvc_sock *, int,
struct mbuf **, struct mbuf **);
void nfs_timer(void *);