Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Flush the log to disk when ffs_sync() gets calle...



details:   https://anonhg.NetBSD.org/src/rev/e86477c8aa27
branches:  trunk
changeset: 351532:e86477c8aa27
user:      hannken <hannken%NetBSD.org@localhost>
date:      Fri Feb 17 08:26:41 2017 +0000

description:
Flush the log to disk when ffs_sync() gets called with MNT_WAIT.

diffstat:

 sys/ufs/ffs/ffs_vfsops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cf14d71863dc -r e86477c8aa27 sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Fri Feb 17 08:26:07 2017 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Fri Feb 17 08:26:41 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.342 2016/12/27 10:54:38 hannken Exp $ */
+/*     $NetBSD: ffs_vfsops.c,v 1.343 2017/02/17 08:26:41 hannken Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.342 2016/12/27 10:54:38 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.343 2017/02/17 08:26:41 hannken Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1973,7 +1973,7 @@
 
 #ifdef WAPBL
        if (mp->mnt_wapbl) {
-               error = wapbl_flush(mp->mnt_wapbl, 0);
+               error = wapbl_flush(mp->mnt_wapbl, (waitfor == MNT_WAIT));
                if (error)
                        allerror = error;
        }



Home | Main Index | Thread Index | Old Index