Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Change some cheap KDASSERT into KASSERT.



details:   https://anonhg.NetBSD.org/src/rev/2f3fc1090a03
branches:  trunk
changeset: 745129:2f3fc1090a03
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Feb 23 08:40:08 2020 +0000

description:
Change some cheap KDASSERT into KASSERT.

diffstat:

 sys/ufs/lfs/lfs_segment.c |  6 +++---
 sys/ufs/lfs/lfs_vnops.c   |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 993452ea0c22 -r 2f3fc1090a03 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Sun Feb 23 08:39:48 2020 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Sun Feb 23 08:40:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.283 2020/02/22 22:20:47 ad Exp $     */
+/*     $NetBSD: lfs_segment.c,v 1.284 2020/02/23 08:40:08 riastradh Exp $      */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.283 2020/02/22 22:20:47 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.284 2020/02/23 08:40:08 riastradh Exp $");
 
 #ifdef DEBUG
 # define vndebug(vp, str) do {                                         \
@@ -396,7 +396,7 @@
                                         * still not done with this vnode.
                                         * XXX we can do better than this.
                                         */
-                                       KDASSERT(ip->i_number != LFS_IFILE_INUM);
+                                       KASSERT(ip->i_number != LFS_IFILE_INUM);
                                        lfs_writeinode(fs, sp, ip);
                                        mutex_enter(&lfs_lock);
                                        LFS_SET_UINO(ip, IN_MODIFIED);
diff -r 993452ea0c22 -r 2f3fc1090a03 sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c   Sun Feb 23 08:39:48 2020 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c   Sun Feb 23 08:40:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vnops.c,v 1.327 2020/02/23 08:39:39 riastradh Exp $        */
+/*     $NetBSD: lfs_vnops.c,v 1.328 2020/02/23 08:40:08 riastradh Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.327 2020/02/23 08:39:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.328 2020/02/23 08:40:08 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1707,7 +1707,7 @@
                                break;
                        }
                }
-               KDASSERT(ip->i_number != LFS_IFILE_INUM);
+               KASSERT(ip->i_number != LFS_IFILE_INUM);
                error = lfs_writeinode(fs, sp, ip);
                mutex_enter(&lfs_lock);
                if (error && (sp->seg_flags & SEGM_SINGLE)) {
@@ -1829,7 +1829,7 @@
                        LFS_SET_UINO(ip, IN_MODIFIED);
                        mutex_exit(&lfs_lock);
                }
-               KDASSERT(ip->i_number != LFS_IFILE_INUM);
+               KASSERT(ip->i_number != LFS_IFILE_INUM);
                error2 = lfs_writeinode(fs, sp, ip);
 
                VOP_UNLOCK(vp);



Home | Main Index | Thread Index | Old Index