diff options
author | zack <zack@FreeBSD.org> | 2011-07-16 08:05:26 +0000 |
---|---|---|
committer | zack <zack@FreeBSD.org> | 2011-07-16 08:05:26 +0000 |
commit | ab40eb1f721cbd836ff5281884af9a205622877d (patch) | |
tree | 18c843ac36e91020e0d14fbabeeaef680147a3cc /sys/fs/nfs | |
parent | a00a7b50afc47abcdf45a5d926f5fcf4634f7652 (diff) | |
download | FreeBSD-src-ab40eb1f721cbd836ff5281884af9a205622877d.zip FreeBSD-src-ab40eb1f721cbd836ff5281884af9a205622877d.tar.gz |
Remove unnecessary thread pointer from VOPLOCK macros and current users.
Reviewed by: rmacklem
Approved by: zml (mentor)
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfs')
-rw-r--r-- | sys/fs/nfs/nfsport.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/fs/nfs/nfsport.h b/sys/fs/nfs/nfsport.h index 9866ef7..726d3b5 100644 --- a/sys/fs/nfs/nfsport.h +++ b/sys/fs/nfs/nfsport.h @@ -836,10 +836,13 @@ void nfsd_mntinit(void); /* * Define these for vnode lock/unlock ops. + * + * These are good abstractions to macro out, so that they can be added to + * later, for debugging or stats, etc. */ -#define NFSVOPLOCK(v, f, p) vn_lock((v), (f)) -#define NFSVOPUNLOCK(v, f, p) VOP_UNLOCK((v), (f)) -#define NFSVOPISLOCKED(v, p) VOP_ISLOCKED((v)) +#define NFSVOPLOCK(v, f) vn_lock((v), (f)) +#define NFSVOPUNLOCK(v, f) VOP_UNLOCK((v), (f)) +#define NFSVOPISLOCKED(v) VOP_ISLOCKED((v)) /* * Define ncl_hash(). |