diff options
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r-- | sys/fs/nullfs/null_subr.c | 3 | ||||
-rw-r--r-- | sys/fs/nullfs/null_vnops.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index 1fdd210..f2a43e0 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -226,9 +226,6 @@ null_nodeget(mp, lowervp, vpp) vp->v_type = lowervp->v_type; vp->v_data = xp; - /* Though v_lock is inited by getnewvnode(), we want our own wmesg */ - lockinit(&vp->v_lock, PVFS, "nunode", VLKTIMEOUT, LK_NOPAUSE); - /* * From NetBSD: * Now lock the new node. We rely on the fact that we were passed diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c index 5f46b2f..69d72bc 100644 --- a/sys/fs/nullfs/null_vnops.c +++ b/sys/fs/nullfs/null_vnops.c @@ -758,6 +758,7 @@ null_reclaim(ap) } vp->v_data = NULL; + vp->v_vnlock = &vp->v_lock; FREE(xp, M_NULLFSNODE); return (0); |