kernel - Add vfs.repurpose_enable, adjust B_HASBOGUS
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Jul 2016 01:57:15 +0000 (18:57 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Jul 2016 03:59:31 +0000 (20:59 -0700)
commitdfe9beaa09e77d03dbf40c3286ddbe69ff8beff2
tree6fc592ec4c92176ff08f1f262e0478ffb4f354f6
parent6707b672fabf5610c7cb1824778d2dfebcbfb5ac
kernel - Add vfs.repurpose_enable, adjust B_HASBOGUS

* Add vfs.repurpose_enable, default disabled.  If this feature is turned on
  the system will try to repurpose the VM pages underlying a buffer on
  re-use instead of allowing the VM pages to cycle into the VM page cache.
  Designed for high I/O-load environments.

* Use the B_HASBOGUS flag to determine if a pmap_qenter() is required,
  and devolve the case to a single call to pmap_qenter() instead of one
  for each bogus page.
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c