Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs revert VCHR part of ffs_vnops.c 1.71.



details:   https://anonhg.NetBSD.org/src/rev/8d456a2409fe
branches:  trunk
changeset: 583243:8d456a2409fe
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Jul 26 12:14:46 2005 +0000

description:
revert VCHR part of ffs_vnops.c 1.71.
as VCHR uses the device pager, no point to call VOP_PUTPAGES here.
pointed by Chuck Silvers.

diffstat:

 sys/ufs/ffs/ffs_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 77fd70599f40 -r 8d456a2409fe sys/ufs/ffs/ffs_vnops.c
--- a/sys/ufs/ffs/ffs_vnops.c   Tue Jul 26 08:06:29 2005 +0000
+++ b/sys/ufs/ffs/ffs_vnops.c   Tue Jul 26 12:14:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vnops.c,v 1.71 2005/07/21 22:00:08 yamt Exp $      */
+/*     $NetBSD: ffs_vnops.c,v 1.72 2005/07/26 12:14:46 yamt Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.71 2005/07/21 22:00:08 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.72 2005/07/26 12:14:46 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -360,7 +360,7 @@
         * Flush all dirty data associated with a vnode.
         */
 
-       if (vp->v_type == VREG || vp->v_type == VBLK || vp->v_type == VCHR) {
+       if (vp->v_type == VREG || vp->v_type == VBLK) {
                simple_lock(&vp->v_interlock);
                error = VOP_PUTPAGES(vp, 0, 0, PGO_ALLPAGES | PGO_CLEANIT |
                    ((ap->a_flags & FSYNC_WAIT) ? PGO_SYNCIO : 0));



Home | Main Index | Thread Index | Old Index