FreeBSD Bugzilla – Attachment 164869 Details for
Bug 178238
[nullfs] nullfs don't release i-nodes on unlink.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Force reclaim of the upper vnode on unlink.
1.patch (text/plain), 620 bytes, created by
Konstantin Belousov
on 2015-12-30 16:18:11 UTC
(
hide
)
Description:
Force reclaim of the upper vnode on unlink.
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2015-12-30 16:18:11 UTC
Size:
620 bytes
patch
obsolete
>diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c >index 4762a3c..72b884f 100644 >--- a/sys/fs/nullfs/null_vnops.c >+++ b/sys/fs/nullfs/null_vnops.c >@@ -568,14 +568,16 @@ static int > null_remove(struct vop_remove_args *ap) > { > int retval, vreleit; >- struct vnode *lvp; >+ struct vnode *lvp, *vp; > >- if (vrefcnt(ap->a_vp) > 1) { >- lvp = NULLVPTOLOWERVP(ap->a_vp); >+ vp = ap->a_vp; >+ if (vrefcnt(vp) > 1) { >+ lvp = NULLVPTOLOWERVP(vp); > VREF(lvp); > vreleit = 1; > } else > vreleit = 0; >+ VTONULL(vp)->null_flags |= NULLV_DROP; > retval = null_bypass(&ap->a_gen); > if (vreleit != 0) > vrele(lvp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178238
: 164869