projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0b834f3
)
Bruce's vnode fix backed out, perfomance reducing
author
Andrey Chernov
<ache@FreeBSD.org>
Sat, 23 Apr 1994 19:40:20 +0000
(19:40 +0000)
committer
Andrey Chernov
<ache@FreeBSD.org>
Sat, 23 Apr 1994 19:40:20 +0000
(19:40 +0000)
sys/kern/vfs_subr.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/kern/vfs_subr.c
b/sys/kern/vfs_subr.c
index
b1117ee
..
c13660e
100644
(file)
--- a/
sys/kern/vfs_subr.c
+++ b/
sys/kern/vfs_subr.c
@@
-236,24
+236,6
@@
getnewvnode(tag, mp, vops, vpp)
*vpp = 0;
return (ENFILE);
}
*vpp = 0;
return (ENFILE);
}
- /*
- * Prefer a vnode with no attached buffers, so that thrashing
- * of the vnode cache doesn't necessarily thrash the buffer
- * cache. It might be better to pick the first free vnode
- * and reassign the buffers.
- */
- while (vp->v_dirtyblkhd || vp->v_cleanblkhd) {
- vp = vp->v_freef;
- if (vp == NULL) {
- vp = vfreeh;
- break;
- }
- }
- if (vp != vfreeh) {
- if (vp->v_type != VBAD)
- vgone(vp);
- vp = vfreeh;
- }
if (vp->v_usecount)
panic("free vnode isn't");
if (vq = vp->v_freef)
if (vp->v_usecount)
panic("free vnode isn't");
if (vq = vp->v_freef)