summaryrefslogtreecommitdiffstats
path: root/sys/sys/buf.h
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-11-30 22:41:49 +0000
committerdyson <dyson@FreeBSD.org>1996-11-30 22:41:49 +0000
commit7a58275f33a773bf61557817714efe27f3611aaf (patch)
treec2414524de2607538eaf1294e5d9ee92fc65c8d6 /sys/sys/buf.h
parent7c59df49d939e5f564cc78e9a17c7d2393e11420 (diff)
downloadFreeBSD-src-7a58275f33a773bf61557817714efe27f3611aaf.zip
FreeBSD-src-7a58275f33a773bf61557817714efe27f3611aaf.tar.gz
Implement a new totally dynamic (up to MAXPHYS) buffer kva allocation
scheme. Additionally, add the capability for checking for unexpected kernel page faults. The maximum amount of kva space for buffers hasn't been decreased from where it is, but it will now be possible to do so. This scheme manages the kva space similar to the buffers themselves. If there isn't enough kva space because of usage or fragementation, buffers will be reclaimed until a buffer allocation is successful. This scheme should be very resistant to fragmentation problems until/if the LFS code is fixed and uses the bogus buffer locking scheme -- but a 'fixed' LFS is not likely to use such a scheme. Now there should be NO problem allocating buffers up to MAXPHYS.
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r--sys/sys/buf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 3244a7e..ee7d213 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.9 (Berkeley) 3/30/95
- * $Id: buf.h,v 1.33 1996/09/06 05:35:00 gibbs Exp $
+ * $Id: buf.h,v 1.34 1996/10/13 14:36:37 phk Exp $
*/
#ifndef _SYS_BUF_H_
@@ -80,6 +80,8 @@ struct buf {
struct {
caddr_t b_addr; /* Memory, superblocks, indirect etc. */
} b_un;
+ caddr_t b_kvabase; /* base kva for buffer */
+ int b_kvasize; /* size of kva for buffer */
void *b_saveaddr; /* Original b_addr for physio. */
daddr_t b_lblkno; /* Logical block number. */
daddr_t b_blkno; /* Underlying physical block number. */
OpenPOWER on IntegriCloud