Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Move extern kernel variable declarations, into a...
details: https://anonhg.NetBSD.org/src/rev/052e6db4226f
branches: trunk
changeset: 583353:052e6db4226f
user: christos <christos%NetBSD.org@localhost>
date: Sun Jul 31 20:18:32 2005 +0000
description:
Move extern kernel variable declarations, into a _KERNEL protected session
so that the don't pollute userland's namespace.
diffstat:
sys/ufs/lfs/lfs.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r f425e7cc3207 -r 052e6db4226f sys/ufs/lfs/lfs.h
--- a/sys/ufs/lfs/lfs.h Sun Jul 31 19:40:50 2005 +0000
+++ b/sys/ufs/lfs/lfs.h Sun Jul 31 20:18:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.h,v 1.88 2005/05/29 21:25:24 christos Exp $ */
+/* $NetBSD: lfs.h,v 1.89 2005/07/31 20:18:32 christos Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -108,7 +108,6 @@
#define LFS_MAX_BUFS ((nbuf >> 2) - 10)
#define LFS_WAIT_BUFS ((nbuf >> 1) - (nbuf >> 3) - 10)
#define LFS_INVERSE_MAX_BUFS(n) (((n) + 10) << 2)
-extern u_long bufmem_lowater, bufmem_hiwater; /* XXX */
#define LFS_MAX_BYTES ((bufmem_lowater >> 2) - 10 * PAGE_SIZE)
#define LFS_INVERSE_MAX_BYTES(n) (((n) + 10 * PAGE_SIZE) << 2)
#define LFS_WAIT_BYTES ((bufmem_lowater >> 1) - (bufmem_lowater >> 3) - 10 * PAGE_SIZE)
@@ -196,6 +195,9 @@
} while (0)
#ifdef _KERNEL
+
+extern u_long bufmem_lowater, bufmem_hiwater; /* XXX */
+
# define LFS_IS_MALLOC_BUF(bp) (((bp)->b_flags & B_CALL) && \
(bp)->b_iodone == lfs_callback)
Home |
Main Index |
Thread Index |
Old Index