From 479a8f8dd75d1bf27614c9c149131efff42f9e72 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sat, 4 Nov 2006 23:58:15 +0000 Subject: [PATCH] VOP_REMOVE() doesn't unlock vnodes nor decrease reference counts. --- share/man/man9/VOP_REMOVE.9 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/share/man/man9/VOP_REMOVE.9 b/share/man/man9/VOP_REMOVE.9 index 260de4083384..aa04405cdcc4 100644 --- a/share/man/man9/VOP_REMOVE.9 +++ b/share/man/man9/VOP_REMOVE.9 @@ -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