hammer2 - Micro-optimize file data allocations
commitaff729969cea3810c2aae773a210c459ffd8d2db
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Aug 2017 02:04:20 +0000 (29 19:04 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Aug 2017 02:04:20 +0000 (29 19:04 -0700)
treeb17d9ee5e2f5a77070a44df2dc5431183c97a899
parentbe36dcd4ab6d5795b3b41e2add42872ef40b31ab
hammer2 - Micro-optimize file data allocations

* Micro-optimize the preferential offset within the bitmap to allocate
  a data block from.  This corrects block offsets when buffer cache
  buffers are flushed out of order, within reason.

* bpref still needs a ton of work.  The current allocator localizes based
  on type (inode, directory entry, data, indirect block, etc), but does
  not separate inodes spatially so things get jumbled fairly quickly.
sys/vfs/hammer2/hammer2_disk.h
sys/vfs/hammer2/hammer2_freemap.c