Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ufs KASSERT(mutex_owner(...)) ---> KASSERT(mutex_own...



details:   https://anonhg.NetBSD.org/src/rev/cc3c060069f4
branches:  trunk
changeset: 349024:cc3c060069f4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Nov 20 21:21:26 2016 +0000

description:
KASSERT(mutex_owner(...)) ---> KASSERT(mutex_owned(...))

Fixes part of PR kern/47114.  Tested by code inspection.

diffstat:

 sys/ufs/ufs/ufs_quota2.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 19f639f8be1c -r cc3c060069f4 sys/ufs/ufs/ufs_quota2.c
--- a/sys/ufs/ufs/ufs_quota2.c  Sun Nov 20 18:02:46 2016 +0000
+++ b/sys/ufs/ufs/ufs_quota2.c  Sun Nov 20 21:21:26 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_quota2.c,v 1.40 2015/03/28 19:24:05 maxv Exp $ */
+/* $NetBSD: ufs_quota2.c,v 1.41 2016/11/20 21:21:26 riastradh Exp $ */
 /*-
   * Copyright (c) 2010 Manuel Bouyer
   * All rights reserved.
@@ -26,7 +26,7 @@
   */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota2.c,v 1.40 2015/03/28 19:24:05 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota2.c,v 1.41 2016/11/20 21:21:26 riastradh Exp $");
 
 #include <sys/buf.h>
 #include <sys/param.h>
@@ -200,7 +200,7 @@
        struct quota2_entry *q2e;
        daddr_t lblkno, blkoff, olblkno = 0;
 
-       KASSERT(mutex_owner(&dqlock));
+       KASSERT(mutex_owned(&dqlock));
 
        while (off != 0) {
                lblkno = (off >> ump->um_mountp->mnt_fs_bshift);



Home | Main Index | Thread Index | Old Index