Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Since curlwp can't be NULL, just call vfs_shutdown1...



details:   https://anonhg.NetBSD.org/src/rev/a3622436b667
branches:  trunk
changeset: 762227:a3622436b667
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 17 19:04:03 2011 +0000

description:
Since curlwp can't be NULL, just call vfs_shutdown1(curlwp).

diffstat:

 sys/kern/vfs_subr.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 6cf072c777ad -r a3622436b667 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Thu Feb 17 19:02:50 2011 +0000
+++ b/sys/kern/vfs_subr.c       Thu Feb 17 19:04:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_subr.c,v 1.418 2011/01/17 07:13:33 uebayasi Exp $  */
+/*     $NetBSD: vfs_subr.c,v 1.419 2011/02/17 19:04:03 matt 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.418 2011/01/17 07:13:33 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.419 2011/02/17 19:04:03 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -2369,12 +2369,9 @@
 void
 vfs_shutdown(void)
 {
-       struct lwp *l;
 
        /* XXX we're certainly not running in lwp0's context! */
-       l = (curlwp == NULL) ? &lwp0 : curlwp;
-
-       vfs_shutdown1(l);
+       vfs_shutdown1(curlwp);
 }
 
 void



Home | Main Index | Thread Index | Old Index