summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-12-20 00:25:01 +0000
committerBruce Evans <bde@FreeBSD.org>1997-12-20 00:25:01 +0000
commit3b1e500f2702334df743d83c37330d1902ff3f26 (patch)
treebc6c1b586cbf0f7dc5da97fc9d4452e9017f916d
parentb1c3237adf6e7b44ac60457dd6a76e9aafafe854 (diff)
Notes
-rw-r--r--sys/nfs/nfs_common.c15
-rw-r--r--sys/nfs/nfs_subs.c15
-rw-r--r--sys/nfsclient/nfs_subs.c15
-rw-r--r--sys/nfsserver/nfs_srvsubs.c15
4 files changed, 36 insertions, 24 deletions
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c
index 7820a81851ed..9f337852c287 100644
--- a/sys/nfs/nfs_common.c
+++ b/sys/nfs/nfs_common.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $
+ * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $
*/
/*
@@ -43,6 +43,7 @@
* copy data between mbuf chains and uio lists.
*/
#include <sys/param.h>
+#include <sys/buf.h>
#include <sys/proc.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err)
}
int
-nfsrv_object_create(struct vnode *vp) {
+nfsrv_object_create(vp)
+ struct vnode *vp;
+{
- if ((vp == NULL) || (vp->v_type != VREG))
- return 1;
- return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1);
+ if (vp == NULL || vp->v_type != VREG)
+ return (1);
+ return (vfs_object_create(vp, curproc,
+ curproc ? curproc->p_ucred : NULL, 1));
}
#endif /* NFS_NOSERVER */
-
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index 7820a81851ed..9f337852c287 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $
+ * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $
*/
/*
@@ -43,6 +43,7 @@
* copy data between mbuf chains and uio lists.
*/
#include <sys/param.h>
+#include <sys/buf.h>
#include <sys/proc.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err)
}
int
-nfsrv_object_create(struct vnode *vp) {
+nfsrv_object_create(vp)
+ struct vnode *vp;
+{
- if ((vp == NULL) || (vp->v_type != VREG))
- return 1;
- return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1);
+ if (vp == NULL || vp->v_type != VREG)
+ return (1);
+ return (vfs_object_create(vp, curproc,
+ curproc ? curproc->p_ucred : NULL, 1));
}
#endif /* NFS_NOSERVER */
-
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index 7820a81851ed..9f337852c287 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $
+ * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $
*/
/*
@@ -43,6 +43,7 @@
* copy data between mbuf chains and uio lists.
*/
#include <sys/param.h>
+#include <sys/buf.h>
#include <sys/proc.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err)
}
int
-nfsrv_object_create(struct vnode *vp) {
+nfsrv_object_create(vp)
+ struct vnode *vp;
+{
- if ((vp == NULL) || (vp->v_type != VREG))
- return 1;
- return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1);
+ if (vp == NULL || vp->v_type != VREG)
+ return (1);
+ return (vfs_object_create(vp, curproc,
+ curproc ? curproc->p_ucred : NULL, 1));
}
#endif /* NFS_NOSERVER */
-
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c
index 7820a81851ed..9f337852c287 100644
--- a/sys/nfsserver/nfs_srvsubs.c
+++ b/sys/nfsserver/nfs_srvsubs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $
+ * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $
*/
/*
@@ -43,6 +43,7 @@
* copy data between mbuf chains and uio lists.
*/
#include <sys/param.h>
+#include <sys/buf.h>
#include <sys/proc.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err)
}
int
-nfsrv_object_create(struct vnode *vp) {
+nfsrv_object_create(vp)
+ struct vnode *vp;
+{
- if ((vp == NULL) || (vp->v_type != VREG))
- return 1;
- return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1);
+ if (vp == NULL || vp->v_type != VREG)
+ return (1);
+ return (vfs_object_create(vp, curproc,
+ curproc ? curproc->p_ucred : NULL, 1));
}
#endif /* NFS_NOSERVER */
-