hammer2 - Try a different approach to bulkfree
commitf079a0a8bb6139863788e815c5d46221817e16e3
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Aug 2017 04:04:14 +0000 (21 21:04 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Aug 2017 04:04:14 +0000 (21 21:04 -0700)
treeb8cb4605e00115e7d9abd007bc388de9009cd589
parentb83c55fca083a61a570071ee5f35f8da0752110d
hammer2 - Try a different approach to bulkfree

* Attempt to fix an issue in the previous version where some dirty chains
  could slip through the gaps and prevent bulkfree from working properly.

* Do a full filesystem sync instead of a partial sync.

* Use the post-sync hmp->volsync structure to obtain the blockref array,
  interlocked against the sync.
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_bulkfree.c
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_flush.c
sys/vfs/hammer2/hammer2_ioctl.c