Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/smbfs use macro.



details:   https://anonhg.NetBSD.org/src/rev/c7d5848844c0
branches:  trunk
changeset: 796239:c7d5848844c0
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 25 19:33:28 2014 +0000

description:
use macro.

diffstat:

 sys/fs/smbfs/smbfs_vfsops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 12e6a26bf79b -r c7d5848844c0 sys/fs/smbfs/smbfs_vfsops.c
--- a/sys/fs/smbfs/smbfs_vfsops.c       Sun May 25 19:32:36 2014 +0000
+++ b/sys/fs/smbfs/smbfs_vfsops.c       Sun May 25 19:33:28 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_vfsops.c,v 1.101 2014/05/24 16:34:03 christos Exp $      */
+/*     $NetBSD: smbfs_vfsops.c,v 1.102 2014/05/25 19:33:28 christos Exp $      */
 
 /*
  * Copyright (c) 2000-2001, Boris Popov
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.101 2014/05/24 16:34:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.102 2014/05/25 19:33:28 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -410,8 +410,8 @@
                return false;
 
        if ((vp->v_type == VNON || (np->n_flag & NMODIFIED) == 0) &&
-           LIST_EMPTY(&vp->v_dirtyblkhd) &&
-            vp->v_uobj.uo_npages == 0)
+            LIST_EMPTY(&vp->v_dirtyblkhd) &&
+            UVM_OBJ_IS_CLEAN(&vp->v_uobj))
                return false;
 
        return true;



Home | Main Index | Thread Index | Old Index