Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Eliminate a variable only used in diagnostic ker...



details:   https://anonhg.NetBSD.org/src/rev/1e092c7d4231
branches:  trunk
changeset: 790714:1e092c7d4231
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Oct 19 19:20:50 2013 +0000

description:
Eliminate a variable only used in diagnostic kernels

diffstat:

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

diffs (37 lines):

diff -r 165f82cdca26 -r 1e092c7d4231 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Sat Oct 19 19:13:51 2013 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Sat Oct 19 19:20:50 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.140 2013/09/30 18:58:00 hannken Exp $  */
+/*     $NetBSD: ffs_alloc.c,v 1.141 2013/10/19 19:20:50 martin Exp $   */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.140 2013/09/30 18:58:00 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.141 2013/10/19 19:20:50 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1202,7 +1202,6 @@
 static daddr_t
 ffs_alloccgblk(struct inode *ip, struct buf *bp, daddr_t bpref, int flags)
 {
-       struct ufsmount *ump;
        struct fs *fs = ip->i_fs;
        struct cg *cgp;
        int cg;
@@ -1213,9 +1212,7 @@
        const int needswap = UFS_FSNEEDSWAP(fs);
 #endif
 
-       ump = ip->i_ump;
-
-       KASSERT(mutex_owned(&ump->um_lock));
+       KASSERT(mutex_owned(&ip->i_ump->um_lock));
 
        cgp = (struct cg *)bp->b_data;
        blksfree = cg_blksfree(cgp, needswap);



Home | Main Index | Thread Index | Old Index