kernel - Refactor buffer cache code in preparation for vm_page repurposing
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Jul 2016 18:44:11 +0000 (11:44 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Jul 2016 05:55:15 +0000 (22:55 -0700)
commitdc6a6bd20a36f4a0f9c2ef312218563c537660ca
tree667de8a8cfadf3e8e82b77c8001cbac3bee04e2f
parent74779181703092463a6f85210dd4fd6e6594ccd6
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