Module Name:    src
Committed By:   christos
Date:           Sun May 25 19:32:36 UTC 2014

Modified Files:
        src/sys/fs/puffs: puffs_vfsops.c

Log Message:
use standard dirty vnode test.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/fs/puffs/puffs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/puffs/puffs_vfsops.c
diff -u src/sys/fs/puffs/puffs_vfsops.c:1.112 src/sys/fs/puffs/puffs_vfsops.c:1.113
--- src/sys/fs/puffs/puffs_vfsops.c:1.112	Sun May 25 13:43:47 2014
+++ src/sys/fs/puffs/puffs_vfsops.c	Sun May 25 15:32:36 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: puffs_vfsops.c,v 1.112 2014/05/25 17:43:47 hannken Exp $	*/
+/*	$NetBSD: puffs_vfsops.c,v 1.113 2014/05/25 19:32:36 christos Exp $	*/
 
 /*
  * Copyright (c) 2005, 2006  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.112 2014/05/25 17:43:47 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.113 2014/05/25 19:32:36 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -513,8 +513,8 @@ puffs_vfsop_statvfs(struct mount *mp, st
 static bool
 pageflush_selector(void *cl, struct vnode *vp)
 {
-
-	return vp->v_type == VREG && !UVM_OBJ_IS_CLEAN(&vp->v_uobj);
+	return vp->v_type == VREG &&
+	    !(LIST_EMPTY(&vp->v_dirtyblkhd) && UVM_OBJ_IS_CLEAN(&vp->v_uobj));
 }
 
 static int

Reply via email to