summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-07-06 09:53:26 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-07-06 09:53:26 +0000
commit81d2292b9f25d0f389a76b194a4b3a9c73713ddc (patch)
treed8af9885666ef87ee4b8f697c25fca30d98fecb3 /sys/nfs
parent7556ec34fa177eb1e03a013306cefce29f4aeb53 (diff)
remove unused nfs_null()
ok miod@ mlarkin@
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vnops.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index ee9bd07f86e..0c83210624d 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vnops.c,v 1.200 2024/05/14 06:26:05 jsg Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.201 2024/07/06 09:53:25 jsg Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
@@ -88,7 +88,6 @@ int nfs_mkdir(void *);
int nfs_mknod(void *);
int nfs_mknodrpc(struct vnode *, struct vnode **, struct componentname *,
struct vattr *);
-int nfs_null(struct vnode *, struct ucred *, struct proc *);
int nfs_open(void *);
int nfs_pathconf(void *);
int nfs_print(void *);
@@ -271,22 +270,6 @@ nfs_cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
}
/*
- * nfs null call from vfs.
- */
-int
-nfs_null(struct vnode *vp, struct ucred *cred, struct proc *procp)
-{
- struct nfsm_info info;
- int error = 0;
-
- info.nmi_mb = info.nmi_mreq = nfsm_reqhead(0);
- info.nmi_errorp = &error;
- error = nfs_request(vp, NFSPROC_NULL, &info);
- m_freem(info.nmi_mrep);
- return (error);
-}
-
-/*
* nfs access vnode op.
* For nfs version 2, just return ok. File accesses may fail later.
* For nfs version 3, use the access rpc to check accessibility. If file modes