IO functions renaming to prepare for parity write support

No functional change.
This commit is contained in:
Andrea Mazzoleni 2016-01-04 11:24:04 +01:00
parent d9f7657107
commit 62b7587c3a
4 changed files with 116 additions and 91 deletions

View file

@ -715,7 +715,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
void** buffer;
/* go to the next block */
blockcur = io_next(&io, &buffer);
blockcur = io_read_next(&io, &buffer);
if (blockcur >= blockmax)
break;
@ -766,7 +766,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
/* until now is CPU */
state_usage_cpu(state);
task = io_data_next(&io, &diskcur);
task = io_data_read(&io, &diskcur);
/* get the results */
disk = task->disk;