LFS version 1; XXX vinvalbuf is wrong!
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 2 Nov 1991 08:44:11 +0000 (00:44 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 2 Nov 1991 08:44:11 +0000 (00:44 -0800)
SCCS-vsn: sys/kern/vfs_subr.c 7.61

usr/src/sys/kern/vfs_subr.c

index bc25070..c222b70 100644 (file)
@@ -4,24 +4,24 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)vfs_subr.c  7.60 (Berkeley) %G%
+ *     @(#)vfs_subr.c  7.61 (Berkeley) %G%
  */
 
 /*
  * External virtual filesystem routines
  */
 
  */
 
 /*
  * External virtual filesystem routines
  */
 
-#include "param.h"
-#include "proc.h"
-#include "mount.h"
-#include "time.h"
-#include "vnode.h"
-#include "specdev.h"
-#include "namei.h"
-#include "ucred.h"
-#include "buf.h"
-#include "errno.h"
-#include "malloc.h"
+#include <sys/param.h>
+#include <sys/proc.h>
+#include <sys/mount.h>
+#include <sys/time.h>
+#include <sys/vnode.h>
+#include <sys/specdev.h>
+#include <sys/namei.h>
+#include <sys/ucred.h>
+#include <sys/buf.h>
+#include <sys/errno.h>
+#include <sys/malloc.h>
 
 /*
  * Remove a mount point from the list of mounted filesystems.
 
 /*
  * Remove a mount point from the list of mounted filesystems.
@@ -413,8 +413,9 @@ vinvalbuf(vp, save)
                        bp->b_flags |= B_BUSY;
                        splx(s);
                        if (save && (bp->b_flags & B_DELWRI)) {
                        bp->b_flags |= B_BUSY;
                        splx(s);
                        if (save && (bp->b_flags & B_DELWRI)) {
-                               dirty++;
-                               (void) bwrite(bp);
+                               dirty++;                        /* XXX */
+                               if (vp->v_mount->mnt_stat.f_type != MOUNT_LFS)
+                                       (void) bwrite(bp);
                                break;
                        }
                        if (bp->b_vp != vp)
                                break;
                        }
                        if (bp->b_vp != vp)