Move extern kernel variable declarations, into a _KERNEL protected session
so that the don't pollute userland's namespace.
This commit is contained in:
parent
c99f08c80d
commit
bce5269120
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user