Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix indentation, wrap long line and remove unused v...
details: https://anonhg.NetBSD.org/src/rev/fd1679f8fedd
branches: trunk
changeset: 749150:fd1679f8fedd
user: enami <enami%NetBSD.org@localhost>
date: Thu Nov 19 03:01:05 2009 +0000
description:
Fix indentation, wrap long line and remove unused variable.
diffstat:
sys/kern/vfs_subr.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r dde74fde5ed6 -r fd1679f8fedd sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c Thu Nov 19 02:59:33 2009 +0000
+++ b/sys/kern/vfs_subr.c Thu Nov 19 03:01:05 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.388 2009/11/19 02:59:33 enami Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.389 2009/11/19 03:01:05 enami Exp $ */
/*-
* Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.388 2009/11/19 02:59:33 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.389 2009/11/19 03:01:05 enami Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -2165,7 +2165,7 @@
size_t *sizep = oldlenp;
struct mount *mp, *nmp;
vnode_t *vp, *mvp, vbuf;
- char *bp = where, *savebp;
+ char *bp = where;
char *ewhere;
int error;
@@ -2185,17 +2185,17 @@
sysctl_unlock();
mutex_enter(&mountlist_lock);
for (mp = CIRCLEQ_FIRST(&mountlist); mp != (void *)&mountlist;
- mp = nmp) {
+ mp = nmp) {
if (vfs_busy(mp, &nmp)) {
continue;
}
- savebp = bp;
/* Allocate a marker vnode. */
mvp = vnalloc(mp);
/* Should never fail for mp != NULL */
KASSERT(mvp != NULL);
mutex_enter(&mntvnode_lock);
- for (vp = TAILQ_FIRST(&mp->mnt_vnodelist); vp; vp = vunmark(mvp)) {
+ for (vp = TAILQ_FIRST(&mp->mnt_vnodelist); vp;
+ vp = vunmark(mvp)) {
vmark(mvp, vp);
/*
* Check that the vp is still associated with
@@ -2216,7 +2216,7 @@
memcpy(&vbuf, vp, VNODESZ);
mutex_exit(&mntvnode_lock);
if ((error = copyout(&vp, bp, VPTRSZ)) ||
- (error = copyout(&vbuf, bp + VPTRSZ, VNODESZ))) {
+ (error = copyout(&vbuf, bp + VPTRSZ, VNODESZ))) {
mutex_enter(&mntvnode_lock);
(void)vunmark(mvp);
mutex_exit(&mntvnode_lock);
Home |
Main Index |
Thread Index |
Old Index