summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-02-08 21:45:47 +0000
committerattilio <attilio@FreeBSD.org>2008-02-08 21:45:47 +0000
commite1db4e70b3e0f4dcd6006b5380fd6484833c54e5 (patch)
treed665c82ab8f9928d1e59b948e716949fff3645b5 /sys/nfsclient
parenta50bf6017b13b7c71ee735e11686a919ae329a41 (diff)
downloadFreeBSD-src-e1db4e70b3e0f4dcd6006b5380fd6484833c54e5.zip
FreeBSD-src-e1db4e70b3e0f4dcd6006b5380fd6484833c54e5.tar.gz
Conver all explicit instances to VOP_ISLOCKED(arg, NULL) into
VOP_ISLOCKED(arg, curthread). Now, VOP_ISLOCKED() and lockstatus() should only acquire curthread as argument; this will lead in axing the additional argument from both functions, making the code cleaner. Reviewed by: jeff, kib
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index d2f4924..e707d9c 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -1050,7 +1050,7 @@ loop:
MNT_VNODE_FOREACH(vp, mp, mvp) {
VI_LOCK(vp);
MNT_IUNLOCK(mp);
- if (VOP_ISLOCKED(vp, NULL) ||
+ if (VOP_ISLOCKED(vp, curthread) ||
vp->v_bufobj.bo_dirty.bv_cnt == 0 ||
waitfor == MNT_LAZY) {
VI_UNLOCK(vp);
OpenPOWER on IntegriCloud