Bruce's vnode fix backed out, perfomance reducing
authorAndrey Chernov <ache@FreeBSD.org>
Sat, 23 Apr 1994 19:40:20 +0000 (19:40 +0000)
committerAndrey Chernov <ache@FreeBSD.org>
Sat, 23 Apr 1994 19:40:20 +0000 (19:40 +0000)
sys/kern/vfs_subr.c

index b1117ee..c13660e 100644 (file)
@@ -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)