Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Make compile again without "options WAPBL".



details:   https://anonhg.NetBSD.org/src/rev/f2a9677b4e74
branches:  trunk
changeset: 822110:f2a9677b4e74
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Mar 01 21:55:07 2017 +0000

description:
Make compile again without "options WAPBL".

>From John D. Baker via current-users@, slightly modified by me.

diffstat:

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

diffs (40 lines):

diff -r 1333d49707a8 -r f2a9677b4e74 sys/ufs/ffs/ffs_vnops.c
--- a/sys/ufs/ffs/ffs_vnops.c   Wed Mar 01 16:44:54 2017 +0000
+++ b/sys/ufs/ffs/ffs_vnops.c   Wed Mar 01 21:55:07 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vnops.c,v 1.126 2017/03/01 10:42:45 hannken Exp $  */
+/*     $NetBSD: ffs_vnops.c,v 1.127 2017/03/01 21:55:07 hannken Exp $  */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.126 2017/03/01 10:42:45 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.127 2017/03/01 21:55:07 hannken Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -283,18 +283,20 @@
        } */ *ap = v;
        int error, flags, uflags;
        struct vnode *vp;
+#ifdef WAPBL
        struct mount *mp;
+#endif /* WAPBL */
 
        flags = ap->a_flags;
        uflags = UPDATE_CLOSE | ((flags & FSYNC_WAIT) ? UPDATE_WAIT : 0);
        vp = ap->a_vp;
-       mp = vp->v_mount;
 
        error = spec_fsync(v);
        if (error)
                goto out;
 
 #ifdef WAPBL
+       mp = vp->v_mount;
        if (mp && mp->mnt_wapbl) {
                /*
                 * Don't bother writing out metadata if the syncer is



Home | Main Index | Thread Index | Old Index