kernel - Refactor buffer cache code in preparation for vm_page repurposing
commite3eedc46fed7298f25e5bb5f0291ba17f90a6abe
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Jul 2016 18:44:11 +0000 (18 11:44 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Jul 2016 03:57:18 +0000 (23 20:57 -0700)
tree869abdefa3c4b8b977fa0c00aeb083f50d5c4fd5
parentd7993ba507efd77d28d3f7aa2c71887a429518bb
kernel - Refactor buffer cache code in preparation for vm_page repurposing

* Keep buffer_map but no longer use vm_map_findspace/vm_map_delete to manage
  buffer sizes.  Instead, reserve MAXBSIZE of unallocated KVM for each buffer.

* Refactor the buffer cache management code.  bufspace exhaustion now has
  hysteresis, bufcount works just about the same.

* Start work on the repurposing code (currently disabled).
19 files changed:
sys/bus/cam/scsi/scsi_da.c
sys/gnu/vfs/ext2fs/ext2_readwrite.c
sys/kern/vfs_bio.c
sys/kern/vfs_vnops.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/vkernel64/x86_64/autoconf.c
sys/sys/buf.h
sys/sys/param.h
sys/vfs/devfs/devfs_vnops.c
sys/vfs/hammer/hammer_vnops.c
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_vnops.c
sys/vfs/isofs/cd9660/cd9660_vnops.c
sys/vfs/nfs/nfs_bio.c
sys/vfs/ufs/ffs_alloc.c
sys/vfs/ufs/ffs_balloc.c
sys/vfs/ufs/ffs_subr.c
sys/vm/vm_page.c
sys/vm/vm_page.h