hammer2 - Improve swapcache support
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Sep 2017 18:00:40 +0000 (11:00 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Sep 2017 18:00:40 +0000 (11:00 -0700)
commit432f29db7a12e3da7dbfb4d54d65799e4e3cb1bb
treeba751464fb97f4ef191c5aa5149b34f8faaf2b2d
parentc88e038b0242d287fb83ecf8afa25983047d2d31
hammer2 - Improve swapcache support

* Properly set B_NOTMETA on media buffers, which allows swapcache to
  distinguish between data and meta-data buffers.

  This ensures that a user desiring to only swapcache meta-data does
  not blow all the SSD swap on file data, particularly if there is an
  excessive amount of file data.

* Greatly improves bulkfree performance on hard drives when SSD swapcache
  is enabled for meta-data only.
sys/vfs/hammer2/hammer2_io.c