aio: correct interface style

This commit is contained in:
Thomas Schoebel-Theuer 2023-02-19 23:35:15 +01:00 committed by Thomas Schoebel-Theuer
parent f2e91d0755
commit 3ff50b3bc5

View File

@ -231,7 +231,8 @@ static int aio_ref_get(struct aio_output *output, struct mref_object *mref)
MARS_ERR("bad ref_len = %d\n", mref->ref_len);
return -EBADR;
}
mref->ref_data = brick_block_alloc(mref->ref_pos, (mref_a->alloc_len = mref->ref_len));
mref_a->alloc_len = mref->ref_len;
mref->ref_data = brick_block_alloc(mref->ref_pos, mref->ref_len);
mref_a->do_dealloc = true;
#ifdef MARS_AIO_DEBUG
atomic_inc(&output->total_alloc_count);