summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-01-07 19:55:08 +0000
committeralc <alc@FreeBSD.org>2003-01-07 19:55:08 +0000
commit0943de6b01db46f4cd4cef9ae98ad08c596b116d (patch)
treed7fd70bc5566811bfb1e2e6288bb0c6231da2c55
parent8840dfea7bcdfca41f7b7d25116a973df1ddb08c (diff)
downloadFreeBSD-src-0943de6b01db46f4cd4cef9ae98ad08c596b116d.zip
FreeBSD-src-0943de6b01db46f4cd4cef9ae98ad08c596b116d.tar.gz
Make bogus_offset local to bufinit().
-rw-r--r--sys/kern/vfs_bio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index dbfaa9c..4139a81 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -167,12 +167,6 @@ static int bd_request;
vm_page_t bogus_page;
/*
- * Offset for bogus_page.
- * XXX bogus_offset should be local to bufinit
- */
-static vm_offset_t bogus_offset;
-
-/*
* Synchronization (sleep/wakeup) variable for active buffer space requests.
* Set when wait starts, cleared prior to wakeup().
* Used in runningbufwakeup() and waitrunningbufspace().
@@ -486,6 +480,7 @@ void
bufinit(void)
{
struct buf *bp;
+ vm_offset_t bogus_offset;
int i;
GIANT_REQUIRED;
OpenPOWER on IntegriCloud