From: blambert Date: Fri, 8 Aug 2008 20:44:38 +0000 (+0000) Subject: After beck@ changed the way nfsiod's are notified of work, the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2946cfd437e157623648336973ea052d77bdd3db;p=openbsd After beck@ changed the way nfsiod's are notified of work, the nfs_iodwant array became unused. Garbage collect and free up a few bytes. ok thib@ --- diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index 5abe441c0ed..a1b57fce2b6 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.53 2008/07/25 14:56:47 beck Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.54 2008/08/08 20:44:38 blambert Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -56,7 +56,6 @@ #include #include -extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON]; extern int nfs_numasync; extern struct nfsstats nfsstats; struct nfs_bufqhead nfs_bufq; diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index f276fbbed0e..ed02854851b 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.84 2008/06/15 04:03:40 thib Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.85 2008/08/08 20:44:38 blambert Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -514,7 +514,6 @@ static short *nfsrv_v3errmap[] = { nfsv3err_commit, }; -extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON]; extern struct nfsrtt nfsrtt; struct pool nfsreqpl; @@ -954,11 +953,6 @@ int nfs_vfs_init(vfsp) struct vfsconf *vfsp; { - int i; - - /* Ensure async daemons disabled */ - for (i = 0; i < NFS_MAXASYNCDAEMON; i++) - nfs_iodwant[i] = (struct proc *)0; TAILQ_INIT(&nfs_bufq); nfs_nhinit(); /* Init the nfsnode table */ diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 008bbea973f..fee35ed0481 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.70 2008/07/06 16:54:48 thib Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.71 2008/08/08 20:44:38 blambert Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -77,7 +77,6 @@ extern int32_t (*nfsrv3_procs[NFS_NPROCS])(struct nfsrv_descript *, struct nfssvc_sock *, struct proc *, struct mbuf **); -extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON]; extern int nfs_numasync; extern int nfsrtton; extern struct nfsstats nfsstats; diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index de940501b75..bbc567179fc 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.99 2008/08/08 20:40:24 blambert Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.100 2008/08/08 20:44:38 blambert Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -186,7 +186,6 @@ extern u_int32_t nfs_true, nfs_false; extern u_int32_t nfs_xdrneg1; extern struct nfsstats nfsstats; extern nfstype nfsv3_type[9]; -struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON]; int nfs_numasync = 0;