Module Name: src Committed By: riastradh Date: Sun Nov 20 21:21:26 UTC 2016
Modified Files: src/sys/ufs/ufs: ufs_quota2.c Log Message: KASSERT(mutex_owner(...)) ---> KASSERT(mutex_owned(...)) Fixes part of PR kern/47114. Tested by code inspection. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/ufs/ufs/ufs_quota2.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/ufs/ufs/ufs_quota2.c diff -u src/sys/ufs/ufs/ufs_quota2.c:1.40 src/sys/ufs/ufs/ufs_quota2.c:1.41 --- src/sys/ufs/ufs/ufs_quota2.c:1.40 Sat Mar 28 19:24:05 2015 +++ src/sys/ufs/ufs/ufs_quota2.c Sun Nov 20 21:21:26 2016 @@ -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 @@ quota2_walk_list(struct ufsmount *ump, s 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);