Source-Changes-HG archive

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

[src/trunk]: src/sys/kern add a couple of asserts



details:   https://anonhg.NetBSD.org/src/rev/89170b0a90d6
branches:  trunk
changeset: 769138:89170b0a90d6
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 01 09:03:43 2011 +0000

description:
add a couple of asserts

diffstat:

 sys/kern/vfs_wapbl.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r ad9c1d23f97c -r 89170b0a90d6 sys/kern/vfs_wapbl.c
--- a/sys/kern/vfs_wapbl.c      Thu Sep 01 08:47:56 2011 +0000
+++ b/sys/kern/vfs_wapbl.c      Thu Sep 01 09:03:43 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_wapbl.c,v 1.46 2011/08/14 12:37:09 christos Exp $  */
+/*     $NetBSD: vfs_wapbl.c,v 1.47 2011/09/01 09:03:43 christos Exp $  */
 
 /*-
  * Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #define WAPBL_INTERNAL
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.46 2011/08/14 12:37:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.47 2011/09/01 09:03:43 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/bitops.h>
@@ -337,6 +337,8 @@
         * the same as the new log we just opened.
         */
        KDASSERT(!wapbl_replay_isopen(wr));
+       KASSERT(wl->wl_devvp->v_type == VBLK);
+       KASSERT(wr->wr_devvp->v_type == VBLK);
        KASSERT(wl->wl_devvp->v_rdev == wr->wr_devvp->v_rdev);
        KASSERT(wl->wl_logpbn == wr->wr_logpbn);
        KASSERT(wl->wl_circ_size == wr->wr_circ_size);



Home | Main Index | Thread Index | Old Index