hammer2 - Embed cache_index heuristic in chain structure
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 31 Aug 2017 02:49:29 +0000 (19:49 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 31 Aug 2017 05:19:01 +0000 (22:19 -0700)
commit2b8f3e7ec3443f35fdaf2f55362bf2db5d9cc640
tree59474e3f13510fefc154ddc0ca61f4cd53ae61dc
parent1e2c820891f23a16617f9007385efc729c932790
hammer2 - Embed cache_index heuristic in chain structure

* Embed the cache_index heuristic in the hammer2_chain structure and get
  rid of all the code that passed it in to various API functions.  This
  substantially cleans-up the API.

* Adjust comments for upcoming error handling work.
12 files changed:
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_freemap.c
sys/vfs/hammer2/hammer2_inode.c
sys/vfs/hammer2/hammer2_iocom.c
sys/vfs/hammer2/hammer2_ioctl.c
sys/vfs/hammer2/hammer2_strategy.c
sys/vfs/hammer2/hammer2_synchro.c
sys/vfs/hammer2/hammer2_vfsops.c
sys/vfs/hammer2/hammer2_xops.c