mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 16:49:40 +00:00
VOP_REMOVE() doesn't unlock vnodes nor decrease reference counts.
This commit is contained in:
parent
a2ca03b3ad
commit
479a8f8dd7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163989
@ -80,16 +80,6 @@ vop_remove(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
|
||||
*/
|
||||
...;
|
||||
|
||||
/*
|
||||
* Careful about trying to remove ".". XXX this should be handled
|
||||
* higher up.
|
||||
*/
|
||||
if (dvp == vp)
|
||||
vrele(vp);
|
||||
else
|
||||
vput(vp);
|
||||
vput(dvp);
|
||||
|
||||
return error;
|
||||
}
|
||||
.Ed
|
||||
|
Loading…
Reference in New Issue
Block a user