ufs_bufstats becomes vfs_bufstats
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 30 Sep 1992 09:16:27 +0000 (01:16 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 30 Sep 1992 09:16:27 +0000 (01:16 -0800)
SCCS-vsn: sys/kern/vfs_syscalls.c 7.98
SCCS-vsn: sys/kern/vfs_bio.c 7.53
SCCS-vsn: sys/kern/vfs_cluster.c 7.53

usr/src/sys/kern/vfs_bio.c
usr/src/sys/kern/vfs_cluster.c
usr/src/sys/kern/vfs_syscalls.c

index 4c4bd6a..de4854d 100644 (file)
@@ -6,7 +6,7 @@
  * Use and redistribution is subject to the Berkeley Software License
  * Agreement and your Software Agreement with AT&T (Western Electric).
  *
  * Use and redistribution is subject to the Berkeley Software License
  * Agreement and your Software Agreement with AT&T (Western Electric).
  *
- *     @(#)vfs_bio.c   7.52 (Berkeley) %G%
+ *     @(#)vfs_bio.c   7.53 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
index 8312c95..0ec3a1b 100644 (file)
@@ -6,7 +6,7 @@
  * Use and redistribution is subject to the Berkeley Software License
  * Agreement and your Software Agreement with AT&T (Western Electric).
  *
  * Use and redistribution is subject to the Berkeley Software License
  * Agreement and your Software Agreement with AT&T (Western Electric).
  *
- *     @(#)vfs_cluster.c       7.52 (Berkeley) %G%
+ *     @(#)vfs_cluster.c       7.53 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
index 384b666..5fb335d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)vfs_syscalls.c      7.97 (Berkeley) %G%
+ *     @(#)vfs_syscalls.c      7.98 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -267,6 +267,10 @@ dounmount(mp, flags, p)
  * Sync system call.
  * Sync each mounted filesystem.
  */
  * Sync system call.
  * Sync each mounted filesystem.
  */
+#ifdef DIAGNOSTIC
+int syncprt = 0;
+#endif
+
 struct sync_args {
        int     dummy;
 };
 struct sync_args {
        int     dummy;
 };
@@ -294,6 +298,10 @@ sync(p, uap, retval)
                } else
                        mp = mp->mnt_next;
        } while (mp != rootfs);
                } else
                        mp = mp->mnt_next;
        } while (mp != rootfs);
+#ifdef DIAGNOSTIC
+       if (syncprt)
+               vfs_bufstats();
+#endif /* DIAGNOSTIC */
        return (0);
 }
 
        return (0);
 }