From bce52691208889e283bbbd702d6406beb0cc4ff1 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 31 Jul 2005 20:18:32 +0000 Subject: [PATCH] Move extern kernel variable declarations, into a _KERNEL protected session so that the don't pollute userland's namespace. --- sys/ufs/lfs/lfs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/ufs/lfs/lfs.h b/sys/ufs/lfs/lfs.h index 17b5583847e2..8b02ed8e53ef 100644 --- a/sys/ufs/lfs/lfs.h +++ b/sys/ufs/lfs/lfs.h @@ -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 @@ typedef struct lfs_res_blk { } 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)