diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-07-09 22:29:57 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-07-09 22:29:57 +0000 |
commit | 2b856d134632dfdeff9ea4e7dca4d8958fb0f0bb (patch) | |
tree | 12fb7faf3468b0bb2d1712f8f88a6b5318059de6 /sys/nnpfs | |
parent | 90f3568623813a10b6ae7548eaf13da8a5e5923c (diff) |
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/nnpfs')
-rw-r--r-- | sys/nnpfs/nnpfs_node-bsd.c | 2 | ||||
-rw-r--r-- | sys/nnpfs/nnpfs_vfsops-bsd.c | 2 | ||||
-rw-r--r-- | sys/nnpfs/nnpfs_vnodeops-common.c | 2 | ||||
-rw-r--r-- | sys/nnpfs/nnpfs_vnodeops.h | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sys/nnpfs/nnpfs_node-bsd.c b/sys/nnpfs/nnpfs_node-bsd.c index 1f6ace40860..f2e9179a915 100644 --- a/sys/nnpfs/nnpfs_node-bsd.c +++ b/sys/nnpfs/nnpfs_node-bsd.c @@ -653,7 +653,7 @@ nnpfs_dnlc_lock(struct vnode *dvp, */ if (*res == dvp) { /* "." */ - VREF(dvp); + vref(dvp); } else if (cnp->cn_flags & ISDOTDOT) { /* ".." */ u_long vpid = dvp->v_id; diff --git a/sys/nnpfs/nnpfs_vfsops-bsd.c b/sys/nnpfs/nnpfs_vfsops-bsd.c index 2e29829aa27..33ad64dc3a4 100644 --- a/sys/nnpfs/nnpfs_vfsops-bsd.c +++ b/sys/nnpfs/nnpfs_vfsops-bsd.c @@ -175,7 +175,7 @@ common_fhtovp(struct mount * mp, if (vp->v_usecount <= 0) nnpfs_do_vget(vp, 0, curproc); else - VREF(vp); + vref(vp); error = 0; } diff --git a/sys/nnpfs/nnpfs_vnodeops-common.c b/sys/nnpfs/nnpfs_vnodeops-common.c index e8ed71842e9..fa01d81932a 100644 --- a/sys/nnpfs/nnpfs_vnodeops-common.c +++ b/sys/nnpfs/nnpfs_vnodeops-common.c @@ -577,7 +577,7 @@ nnpfs_lookup_common(struct vnode *dvp, if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') { *vpp = dvp; - VREF(*vpp); + vref(*vpp); return 0; } diff --git a/sys/nnpfs/nnpfs_vnodeops.h b/sys/nnpfs/nnpfs_vnodeops.h index 552734db621..e42ae1f63df 100644 --- a/sys/nnpfs/nnpfs_vnodeops.h +++ b/sys/nnpfs/nnpfs_vnodeops.h @@ -44,8 +44,8 @@ #ifdef __osf__ /* XXX - what about VN_LOCK? */ -#define nnpfs_vfs_readlock(vp, proc) VREF((vp)) -#define nnpfs_vfs_writelock(vp, proc) VREF((vp)) +#define nnpfs_vfs_readlock(vp, proc) vref((vp)) +#define nnpfs_vfs_writelock(vp, proc) vref((vp)) #define nnpfs_vfs_unlock(vp, proc) vrele((vp)) /* XXX - should this do anything? */ |