diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-08-11 17:06:12 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-08-11 17:06:12 +0000 |
commit | 6900534ae3a09df07b8422e0a7e7d9f24493d9c5 (patch) | |
tree | a5e20c75c0730f25cbcc0558105987904966e72e /sys | |
parent | 26aaea80860779fabc6d188cc09d092095aa6b19 (diff) |
tiny knf and use curproc directly instead of a setting up a local proc
pointer since its just used in one place.
ok blambert@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_node.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index 2c9d0a55ba0..70ccacb047d 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_node.c,v 1.46 2009/08/10 10:59:12 thib Exp $ */ +/* $OpenBSD: nfs_node.c,v 1.47 2009/08/11 17:06:11 thib Exp $ */ /* $NetBSD: nfs_node.c,v 1.16 1996/02/18 11:53:42 fvdl Exp $ */ /* @@ -142,15 +142,11 @@ loop: } int -nfs_inactive(v) - void *v; +nfs_inactive(void *v) { - struct vop_inactive_args *ap = v; - struct nfsnode *np; - struct sillyrename *sp; - struct proc *p = curproc; /* XXX */ - - np = VTONFS(ap->a_vp); + struct vop_inactive_args *ap = v; + struct nfsnode *np = VTONFS(ap->a_vp); + struct sillyrename *sp; #ifdef DIAGNOSTIC if (prtactive && ap->a_vp->v_usecount != 0) @@ -166,7 +162,7 @@ nfs_inactive(v) /* * Remove the silly file that was rename'd earlier */ - nfs_vinvalbuf(ap->a_vp, 0, sp->s_cred, p); + nfs_vinvalbuf(ap->a_vp, 0, sp->s_cred, curproc); nfs_removeit(sp); crfree(sp->s_cred); vrele(sp->s_dvp); |