Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs in ffs_sync(), don't skip vnodes which have (pot...



details:   https://anonhg.NetBSD.org/src/rev/8897e4dc60e2
branches:  trunk
changeset: 500043:8897e4dc60e2
user:      chs <chs%NetBSD.org@localhost>
date:      Mon Dec 04 09:37:06 2000 +0000

description:
in ffs_sync(), don't skip vnodes which have (potentially dirty) pages.

diffstat:

 sys/ufs/ffs/ffs_vfsops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 887aad0892ae -r 8897e4dc60e2 sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Mon Dec 04 07:09:35 2000 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Mon Dec 04 09:37:06 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.74 2000/12/03 19:52:06 fvdl Exp $     */
+/*     $NetBSD: ffs_vfsops.c,v 1.75 2000/12/04 09:37:06 chs Exp $      */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -945,7 +945,8 @@
                if (vp->v_type == VNON ||
                    ((ip->i_flag &
                      (IN_ACCESS | IN_CHANGE | IN_UPDATE | IN_MODIFIED | IN_ACCESSED)) == 0 &&
-                    LIST_EMPTY(&vp->v_dirtyblkhd)))
+                    LIST_EMPTY(&vp->v_dirtyblkhd) &&
+                    vp->v_uvm.u_obj.uo_npages == 0))
                {
                        simple_unlock(&vp->v_interlock);
                        continue;



Home | Main Index | Thread Index | Old Index