Source-Changes-HG archive

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

[src/trunk]: src/sys Remove no longer needed flag FSYNC_VFS /* fsync: via FSY...



details:   https://anonhg.NetBSD.org/src/rev/938fc8d96c25
branches:  trunk
changeset: 764558:938fc8d96c25
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Apr 27 09:46:27 2011 +0000

description:
Remove no longer needed flag FSYNC_VFS /* fsync: via FSYNC_VFS() */.

diffstat:

 sys/miscfs/specfs/spec_vnops.c |  6 +++---
 sys/sys/vnode.h                |  3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 0f50ab5ae6b2 -r 938fc8d96c25 sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c    Wed Apr 27 08:32:42 2011 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c    Wed Apr 27 09:46:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec_vnops.c,v 1.132 2011/04/26 11:32:39 hannken Exp $ */
+/*     $NetBSD: spec_vnops.c,v 1.133 2011/04/27 09:46:27 hannken Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.132 2011/04/26 11:32:39 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.133 2011/04/27 09:46:27 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -865,7 +865,7 @@
 
        if (vp->v_type == VBLK) {
                if ((mp = vp->v_specmountpoint) != NULL) {
-                       error = VFS_FSYNC(mp, vp, ap->a_flags | FSYNC_VFS);
+                       error = VFS_FSYNC(mp, vp, ap->a_flags);
                        if (error != EOPNOTSUPP)
                                return error;
                }
diff -r 0f50ab5ae6b2 -r 938fc8d96c25 sys/sys/vnode.h
--- a/sys/sys/vnode.h   Wed Apr 27 08:32:42 2011 +0000
+++ b/sys/sys/vnode.h   Wed Apr 27 09:46:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode.h,v 1.229 2011/04/26 11:32:39 hannken Exp $      */
+/*     $NetBSD: vnode.h,v 1.230 2011/04/27 09:46:27 hannken Exp $      */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -337,7 +337,6 @@
 #define        FSYNC_LAZY      0x0008          /* fsync: lazy sync (trickle) */
 #define        FSYNC_NOLOG     0x0010          /* fsync: do not flush the log */
 #define        FSYNC_CACHE     0x0100          /* fsync: flush disk caches too */
-#define        FSYNC_VFS       0x0200          /* fsync: via FSYNC_VFS() */
 
 #define        UPDATE_WAIT     0x0001          /* update: wait for completion */
 #define        UPDATE_DIROP    0x0002          /* update: hint to fs to wait or not */



Home | Main Index | Thread Index | Old Index