Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys vfs_drainvnodes: drop lwp argument, remove variable name...
details: https://anonhg.NetBSD.org/src/rev/debd65881251
branches: trunk
changeset: 763736:debd65881251
user: rmind <rmind%NetBSD.org@localhost>
date: Sat Apr 02 05:07:56 2011 +0000
description:
vfs_drainvnodes: drop lwp argument, remove variable name in prototype.
diffstat:
sys/kern/init_sysctl.c | 6 +++---
sys/kern/vfs_vnode.c | 11 ++++++-----
sys/sys/vnode.h | 4 ++--
3 files changed, 11 insertions(+), 10 deletions(-)
diffs (84 lines):
diff -r 95ccb0006e27 -r debd65881251 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c Sat Apr 02 04:57:35 2011 +0000
+++ b/sys/kern/init_sysctl.c Sat Apr 02 05:07:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysctl.c,v 1.179 2011/02/05 01:22:12 christos Exp $ */
+/* $NetBSD: init_sysctl.c,v 1.180 2011/04/02 05:07:57 rmind Exp $ */
/*-
* Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.179 2011/02/05 01:22:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.180 2011/04/02 05:07:57 rmind Exp $");
#include "opt_sysv.h"
#include "opt_compat_netbsd.h"
@@ -989,7 +989,7 @@
old_vnodes = desiredvnodes;
desiredvnodes = new_vnodes;
if (new_vnodes < old_vnodes) {
- error = vfs_drainvnodes(new_vnodes, l);
+ error = vfs_drainvnodes(new_vnodes);
if (error) {
desiredvnodes = old_vnodes;
return (error);
diff -r 95ccb0006e27 -r debd65881251 sys/kern/vfs_vnode.c
--- a/sys/kern/vfs_vnode.c Sat Apr 02 04:57:35 2011 +0000
+++ b/sys/kern/vfs_vnode.c Sat Apr 02 05:07:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_vnode.c,v 1.2 2011/04/02 04:45:24 rmind Exp $ */
+/* $NetBSD: vfs_vnode.c,v 1.3 2011/04/02 05:07:57 rmind Exp $ */
/*-
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.2 2011/04/02 04:45:24 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.3 2011/04/02 05:07:57 rmind Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -1144,7 +1144,7 @@
}
int
-vfs_drainvnodes(long target, struct lwp *l)
+vfs_drainvnodes(long target)
{
while (numvnodes > target) {
@@ -1152,8 +1152,9 @@
mutex_enter(&vnode_free_list_lock);
vp = getcleanvnode();
- if (vp == NULL)
- return EBUSY; /* give up */
+ if (vp == NULL) {
+ return EBUSY;
+ }
ungetnewvnode(vp);
}
return 0;
diff -r 95ccb0006e27 -r debd65881251 sys/sys/vnode.h
--- a/sys/sys/vnode.h Sat Apr 02 04:57:35 2011 +0000
+++ b/sys/sys/vnode.h Sat Apr 02 05:07:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnode.h,v 1.225 2011/04/02 04:45:24 rmind Exp $ */
+/* $NetBSD: vnode.h,v 1.226 2011/04/02 05:07:56 rmind Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -636,7 +636,7 @@
/* see vfssubr(9) */
void vfs_getnewfsid(struct mount *);
-int vfs_drainvnodes(long target, struct lwp *);
+int vfs_drainvnodes(long);
void vfs_timestamp(struct timespec *);
#if defined(DDB) || defined(DEBUGPRINT)
void vfs_vnode_print(struct vnode *, int, void (*)(const char *, ...));
Home |
Main Index |
Thread Index |
Old Index