Module Name: src Committed By: matt Date: Thu Feb 17 19:04:03 UTC 2011
Modified Files: src/sys/kern: vfs_subr.c Log Message: Since curlwp can't be NULL, just call vfs_shutdown1(curlwp). To generate a diff of this commit: cvs rdiff -u -r1.418 -r1.419 src/sys/kern/vfs_subr.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/kern/vfs_subr.c diff -u src/sys/kern/vfs_subr.c:1.418 src/sys/kern/vfs_subr.c:1.419 --- src/sys/kern/vfs_subr.c:1.418 Mon Jan 17 07:13:33 2011 +++ src/sys/kern/vfs_subr.c Thu Feb 17 19:04:03 2011 @@ -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