Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Remove the present incarnation of FSYNC_DATAONLY...



details:   https://anonhg.NetBSD.org/src/rev/6b1539c155e7
branches:  trunk
changeset: 554160:6b1539c155e7
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sat Oct 25 19:52:21 2003 +0000

description:
Remove the present incarnation of FSYNC_DATAONLY use from ffs_fsync() and
ffs_full_fsync(); while it is supposed to hint that the update of _file_
metadata (as in timestamps et al.) may be omitted it doesn't mean the
same for _filesystem_ metadata.

diffstat:

 sys/ufs/ffs/ffs_vnops.c |  13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diffs (55 lines):

diff -r 4f0dd6f2255d -r 6b1539c155e7 sys/ufs/ffs/ffs_vnops.c
--- a/sys/ufs/ffs/ffs_vnops.c   Sat Oct 25 19:49:13 2003 +0000
+++ b/sys/ufs/ffs/ffs_vnops.c   Sat Oct 25 19:52:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vnops.c,v 1.60 2003/08/07 16:34:32 agc Exp $       */
+/*     $NetBSD: ffs_vnops.c,v 1.61 2003/10/25 19:52:21 kleink Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.60 2003/08/07 16:34:32 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.61 2003/10/25 19:52:21 kleink Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -283,7 +283,7 @@
         */
 
        s = splbio();
-       if (!(ap->a_flags & FSYNC_DATAONLY) && blk_high >= NDADDR) {
+       if (blk_high >= NDADDR) {
                error = ufs_getlbns(vp, blk_high, ia, &num);
                if (error) {
                        splx(s);
@@ -359,7 +359,7 @@
 
        passes = NIADDR + 1;
        skipmeta = 0;
-       if (ap->a_flags & (FSYNC_DATAONLY|FSYNC_WAIT))
+       if (ap->a_flags & FSYNC_WAIT)
                skipmeta = 1;
        s = splbio();
 
@@ -392,7 +392,7 @@
                 */
                nbp = LIST_FIRST(&vp->v_dirtyblkhd);
        }
-       if (skipmeta && !(ap->a_flags & FSYNC_DATAONLY)) {
+       if (skipmeta) {
                skipmeta = 0;
                goto loop;
        }
@@ -406,9 +406,6 @@
                simple_unlock(&global_v_numoutput_slock);
                splx(s);
 
-               if (ap->a_flags & FSYNC_DATAONLY)
-                       return (0);
-
                /* 
                 * Ensure that any filesystem metadata associated
                 * with the vnode has been written.



Home | Main Index | Thread Index | Old Index