Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/efs Now that KASSERT will always consume its argument...
details: https://anonhg.NetBSD.org/src/rev/7fe437a5ffbb
branches: trunk
changeset: 790782:7fe437a5ffbb
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 21:12:08 2013 +0000
description:
Now that KASSERT will always consume its arguments, move a KASSERT inside
a DIAGNOSTIC, because the function used is only defined with DIAGNOSTIC.
diffstat:
sys/fs/efs/efs_subr.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 3db9afafb35c -r 7fe437a5ffbb sys/fs/efs/efs_subr.c
--- a/sys/fs/efs/efs_subr.c Sun Oct 20 21:11:15 2013 +0000
+++ b/sys/fs/efs/efs_subr.c Sun Oct 20 21:12:08 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efs_subr.c,v 1.8 2012/12/20 08:03:42 hannken Exp $ */
+/* $NetBSD: efs_subr.c,v 1.9 2013/10/20 21:12:08 christos Exp $ */
/*
* Copyright (c) 2006 Stephen M. Rumble <rumble%ephemeral.org@localhost>
@@ -17,7 +17,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efs_subr.c,v 1.8 2012/12/20 08:03:42 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efs_subr.c,v 1.9 2013/10/20 21:12:08 christos Exp $");
#include <sys/param.h>
#include <sys/kauth.h>
@@ -350,7 +350,9 @@
int ret;
KASSERT(VOP_ISLOCKED(ei->ei_vp));
+#ifdef DIAGNOSTIC
KASSERT(efs_is_inode_synced(ei) == 0);
+#endif
KASSERT((ei->ei_mode & S_IFMT) == S_IFDIR);
efs_extent_iterator_init(&exi, ei, 0);
Home |
Main Index |
Thread Index |
Old Index