diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2024-05-13 11:17:42 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2024-05-13 11:17:42 +0000 |
commit | 56a9776fef21409406239c434ce53087a8d24bf8 (patch) | |
tree | 62ce037ffc86f78267556cfa632c477784926595 /sys/miscfs | |
parent | d59c2125a372e3603af21f55d421e1b61fa69f35 (diff) |
vfs: VOP_REMOVE: move vnode unlocking and ref dropping to FS-indep part
while here, ensure all vop_remove field are set, and always call the function.
the change is very conservative: it only adds vnode ref drop/unlock where it was
absent because it should be unreachable (and if it wasn't, it should fix
things).
ok miod@
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/fuse/fuse_vnops.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/miscfs/fuse/fuse_vnops.c b/sys/miscfs/fuse/fuse_vnops.c index 173d70562f6..8c38ab55c41 100644 --- a/sys/miscfs/fuse/fuse_vnops.c +++ b/sys/miscfs/fuse/fuse_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_vnops.c,v 1.68 2024/03/25 17:57:07 guenther Exp $ */ +/* $OpenBSD: fuse_vnops.c,v 1.69 2024/05/13 11:17:40 semarie Exp $ */ /* * Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -1512,11 +1512,6 @@ fusefs_remove(void *v) fb_delete(fbuf); out: pool_put(&namei_pool, cnp->cn_pnbuf); - if (dvp == vp) - vrele(vp); - else - vput(vp); - vput(dvp); return (error); } |