Rename big_write.block to location

This commit is contained in:
Vitaliy Filippov
2019-11-12 20:58:27 +03:00
parent bb55a7fbf4
commit ae77a228c7
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ int blockstore::dequeue_write(blockstore_operation *op)
if (op->version == 1 && op->len != block_size)
{
// zero fill newly allocated object
// FIXME: it's not so good because it turns new small writes into big writes
// but it's the first and the simplest implementation
// This thing turns new small writes into big writes
// So FIXME: consider writing an empty big_write as version 1 instead of zero-filling here
if (op->offset > 0)
op->iov_zerofill[vcnt++] = (struct iovec){ zero_object, op->offset };
op->iov_zerofill[vcnt++] = (struct iovec){ op->buf, op->len };