Rename blockstore_operation to blockstore_op_t

This commit is contained in:
Vitaliy Filippov
2019-12-15 14:57:18 +03:00
parent f2e9749c93
commit 749ab6e2c6
12 changed files with 56 additions and 56 deletions
+4 -4
View File
@@ -205,10 +205,10 @@ bool blockstore::is_safe_to_stop()
if (!readonly && !stop_sync_submitted)
{
// We should sync the blockstore before unmounting
blockstore_operation *op = new blockstore_operation;
blockstore_op_t *op = new blockstore_op_t;
op->flags = OP_SYNC;
op->buf = NULL;
op->callback = [](blockstore_operation *op)
op->callback = [](blockstore_op_t *op)
{
delete op;
};
@@ -220,7 +220,7 @@ bool blockstore::is_safe_to_stop()
return true;
}
void blockstore::check_wait(blockstore_operation *op)
void blockstore::check_wait(blockstore_op_t *op)
{
if (op->wait_for == WAIT_SQE)
{
@@ -276,7 +276,7 @@ void blockstore::check_wait(blockstore_operation *op)
}
}
void blockstore::enqueue_op(blockstore_operation *op)
void blockstore::enqueue_op(blockstore_op_t *op)
{
int type = op->flags & OP_TYPE_MASK;
if (type < OP_READ || type > OP_DELETE || (type == OP_READ || type == OP_WRITE) &&