AFS_GUNLOCK();
VOP_LOCK(tfile->vnode, LK_EXCLUSIVE);
code = VOP_WRITE(tfile->vnode, tuiop, 0, afs_osi_credp);
+#if defined(AFS_NBSD60_ENV)
+ VOP_UNLOCK(tfile->vnode);
+#else
VOP_UNLOCK(tfile->vnode, 0);
+#endif
AFS_GLOCK();
#elif defined(AFS_XBSD_ENV)
AFS_GUNLOCK();