diff options
author | 2009-07-09 22:29:55 +0000 | |
---|---|---|
committer | 2009-07-09 22:29:55 +0000 | |
commit | 627b2c48b045094e47a896259c934afaea2b736d (patch) | |
tree | f5457c2a59620f592424c9e0855e1bb5eb4a726c /sys/miscfs | |
parent | regen (diff) | |
download | wireguard-openbsd-627b2c48b045094e47a896259c934afaea2b736d.tar.xz wireguard-openbsd-627b2c48b045094e47a896259c934afaea2b736d.zip |
Remove the VREF() macro and replaces all instances with a call to verf(),
which is exactly what the macro does.
Macro's that are nothing more then:
#define FUNCTION(arg) function(arg)
are almost always pointless and should go away.
OK blambert@
Agreed by many.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/portal/portal_vfsops.c | 4 | ||||
-rw-r--r-- | sys/miscfs/portal/portal_vnops.c | 4 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c index 01e05099815..ee959434394 100644 --- a/sys/miscfs/portal/portal_vfsops.c +++ b/sys/miscfs/portal/portal_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: portal_vfsops.c,v 1.23 2008/11/02 11:37:32 thib Exp $ */ +/* $OpenBSD: portal_vfsops.c,v 1.24 2009/07/09 22:29:56 thib Exp $ */ /* $NetBSD: portal_vfsops.c,v 1.14 1996/02/09 22:40:41 christos Exp $ */ /* @@ -206,7 +206,7 @@ portal_root(struct mount *mp, struct vnode **vpp) * Return locked reference to root. */ vp = VFSTOPORTAL(mp)->pm_root; - VREF(vp); + vref(vp); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, p); *vpp = vp; return (0); diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c index fede74bf576..d890db75c16 100644 --- a/sys/miscfs/portal/portal_vnops.c +++ b/sys/miscfs/portal/portal_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: portal_vnops.c,v 1.28 2008/11/02 11:37:32 thib Exp $ */ +/* $OpenBSD: portal_vnops.c,v 1.29 2009/07/09 22:29:56 thib Exp $ */ /* $NetBSD: portal_vnops.c,v 1.17 1996/02/13 13:12:57 mycroft Exp $ */ /* @@ -170,7 +170,7 @@ portal_lookup(void *v) if (cnp->cn_namelen == 1 && *pname == '.') { *vpp = dvp; - VREF(dvp); + vref(dvp); return (0); } diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index df7fa971424..4a9c1771263 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_vnops.c,v 1.45 2008/06/09 23:38:37 millert Exp $ */ +/* $OpenBSD: procfs_vnops.c,v 1.46 2009/07/09 22:29:56 thib Exp $ */ /* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */ /* @@ -657,7 +657,7 @@ procfs_lookup(void *v) if (cnp->cn_namelen == 1 && *pname == '.') { *vpp = dvp; - VREF(dvp); + vref(dvp); return (0); } @@ -749,7 +749,7 @@ procfs_lookup(void *v) if (pt->pt_pfstype == Pfile) { fvp = p->p_textvp; /* We already checked that it exists. */ - VREF(fvp); + vref(fvp); vn_lock(fvp, LK_EXCLUSIVE | LK_RETRY, curp); if (wantpunlock) { VOP_UNLOCK(dvp, 0, curp); |