diff options
author | phk <phk@FreeBSD.org> | 2004-12-20 21:34:29 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-20 21:34:29 +0000 |
commit | 0faeb292ed219df549f255578f74531a32900d18 (patch) | |
tree | 534a79228eee167b3db8dd15e6b5ea9081347a89 /sys/kern | |
parent | df11d2eb83f7dcf3b44c379cc5c563460d8b7046 (diff) | |
download | FreeBSD-src-0faeb292ed219df549f255578f74531a32900d18.zip FreeBSD-src-0faeb292ed219df549f255578f74531a32900d18.tar.gz |
We can only ever get to vgonechrl() from a devfs vnode, so we do not
need to reassign the vp->v_op to devfs_specops, we know that is the
value already.
Make devfs_specops private to devfs.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 8323091..e67d861 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2397,14 +2397,12 @@ vgonechrl(struct vnode *vp, struct thread *td) VOP_UNLOCK(vp, 0, td); vp->v_vnlock = &vp->v_lock; vp->v_tag = "orphanchr"; - vp->v_op = &devfs_specops; delmntque(vp); cache_purge(vp); vrele(vp); VI_LOCK(vp); } else vclean(vp, 0, td); - vp->v_op = &devfs_specops; vx_unlock(vp); VI_UNLOCK(vp); } |