I'd like a quick review of this patch.  It looks like swapdev_vnode
    changes broke diskless swapping too, not just swap-backed VN.  I'm sure 
    glad someone filed a PR on this (kern/16165) or we would have gone into
    release with this bug.

    Now, normally I would take this opportunity to put forth some innane
    comment directed towards the perpetrators, but at the moment I am simply
    going to leave it by expressing my profound unhappiness over the lack 
    of testing that has gone into commits recently (last couple of months).
    Lets please not bof-up this release!

                                                -Matt

Index: vm_swap.c
===================================================================
RCS file: /home/ncvs/src/sys/vm/vm_swap.c,v
retrieving revision 1.95
diff -u -r1.95 vm_swap.c
--- vm_swap.c   2000/01/10 12:04:27     1.95
+++ vm_swap.c   2000/01/25 04:49:32
@@ -210,14 +210,6 @@
        if (error)
                vrele(vp);
 
-       if (!swapdev_vp) {
-               error = getnewvnode(VT_NON, NULL, swapdev_vnodeop_p,
-                   &swapdev_vp);
-               if (error)
-                       panic("Cannot get vnode for swapdev");
-               swapdev_vp->v_type = VNON;      /* Untyped */
-       }
-
        return (error);
 }
 
@@ -245,6 +237,14 @@
        register long blk;
        swblk_t dvbase;
        int error;
+
+       if (!swapdev_vp) {
+               error = getnewvnode(VT_NON, NULL, swapdev_vnodeop_p,
+                   &swapdev_vp);
+               if (error)
+                       panic("Cannot get vnode for swapdev");
+               swapdev_vp->v_type = VNON;      /* Untyped */
+       }
 
        ASSERT_VOP_UNLOCKED(vp, "swaponvp");
        for (sp = swdevt, index = 0 ; index < nswdev; index++, sp++) {


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to