kernel - Fix cluster_write() inefficiency
commitcf297f2cccd7fd102041ebf174af66a31a5ef5ce
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 7 Mar 2017 01:36:48 +0000 (6 17:36 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 7 Mar 2017 01:36:48 +0000 (6 17:36 -0800)
tree0e37d72301062b252a206ad7fcff11a555c8de20
parent74d54042dbade9a0b2e5830b9645fd12ebc978f4
kernel - Fix cluster_write() inefficiency

* A bug in the cluster code was causing HAMMER to write out 64KB buffers in
  32KB overlapping segments, resulting in data being written to the media
  twice.

* This fix just about doubles HAMMER's sequential write bandwidth.
sys/kern/vfs_cluster.c