Module Name:    src
Committed By:   christos
Date:           Sun Oct 20 21:12:08 UTC 2013

Modified Files:
        src/sys/fs/efs: efs_subr.c

Log Message:
Now that KASSERT will always consume its arguments, move a KASSERT inside
a DIAGNOSTIC, because the function used is only defined with DIAGNOSTIC.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/fs/efs/efs_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/efs/efs_subr.c
diff -u src/sys/fs/efs/efs_subr.c:1.8 src/sys/fs/efs/efs_subr.c:1.9
--- src/sys/fs/efs/efs_subr.c:1.8	Thu Dec 20 03:03:42 2012
+++ src/sys/fs/efs/efs_subr.c	Sun Oct 20 17:12:08 2013
@@ -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 <rum...@ephemeral.org>
@@ -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 @@ efs_inode_lookup(struct efs_mount *emp, 
 	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);

Reply via email to