Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs add assertion to ensure ffs_cgupdate() is always...
details: https://anonhg.NetBSD.org/src/rev/42a45d10452a
branches: trunk
changeset: 348499:42a45d10452a
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Oct 20 19:31:32 2016 +0000
description:
add assertion to ensure ffs_cgupdate() is always called from
within a WAPBL transaction (if logging is on)
diffstat:
sys/ufs/ffs/ffs_vfsops.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 3df7a3f8fc08 -r 42a45d10452a sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c Thu Oct 20 19:22:35 2016 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c Thu Oct 20 19:31:32 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_vfsops.c,v 1.340 2016/07/28 08:24:58 martin Exp $ */
+/* $NetBSD: ffs_vfsops.c,v 1.341 2016/10/20 19:31:32 jdolecek 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.340 2016/07/28 08:24:58 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.341 2016/10/20 19:31:32 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -2351,6 +2351,8 @@
void *space;
int i, size, error = 0, allerror = 0;
+ UFS_WAPBL_JLOCK_ASSERT(mp);
+
allerror = ffs_sbupdate(mp, waitfor);
blks = howmany(fs->fs_cssize, fs->fs_fsize);
space = fs->fs_csp;
Home |
Main Index |
Thread Index |
Old Index