projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eta: Fix ramp time ETA
[fio.git]
/
engines
/
binject.c
diff --git
a/engines/binject.c
b/engines/binject.c
index f8e83cd2b14426c08a1cd263cf376b757a7eb95a..7d20a3fd7b9ce15d52d86f4b28dc494ba7b24e93 100644
(file)
--- a/
engines/binject.c
+++ b/
engines/binject.c
@@
-94,7
+94,7
@@
static int fio_binject_getevents(struct thread_data *td, unsigned int min,
unsigned int max,
const struct timespec fio_unused *t)
{
unsigned int max,
const struct timespec fio_unused *t)
{
- struct binject_data *bd = td->io_ops
->
data;
+ struct binject_data *bd = td->io_ops
_
data;
int left = max, ret, r = 0, ev_index = 0;
void *buf = bd->cmds;
unsigned int i, events;
int left = max, ret, r = 0, ev_index = 0;
void *buf = bd->cmds;
unsigned int i, events;
@@
-185,7
+185,7
@@
static int fio_binject_doio(struct thread_data *td, struct io_u *io_u)
static int fio_binject_prep(struct thread_data *td, struct io_u *io_u)
{
static int fio_binject_prep(struct thread_data *td, struct io_u *io_u)
{
- struct binject_data *bd = td->io_ops
->
data;
+ struct binject_data *bd = td->io_ops
_
data;
struct b_user_cmd *buc = &io_u->buc;
struct binject_file *bf = FILE_ENG_DATA(io_u->file);
struct b_user_cmd *buc = &io_u->buc;
struct binject_file *bf = FILE_ENG_DATA(io_u->file);
@@
-234,7
+234,7
@@
static int fio_binject_queue(struct thread_data *td, struct io_u *io_u)
static struct io_u *fio_binject_event(struct thread_data *td, int event)
{
static struct io_u *fio_binject_event(struct thread_data *td, int event)
{
- struct binject_data *bd = td->io_ops
->
data;
+ struct binject_data *bd = td->io_ops
_
data;
return bd->events[event];
}
return bd->events[event];
}
@@
-376,7
+376,7
@@
err_close:
static void fio_binject_cleanup(struct thread_data *td)
{
static void fio_binject_cleanup(struct thread_data *td)
{
- struct binject_data *bd = td->io_ops
->
data;
+ struct binject_data *bd = td->io_ops
_
data;
if (bd) {
free(bd->events);
if (bd) {
free(bd->events);
@@
-406,7
+406,7
@@
static int fio_binject_init(struct thread_data *td)
bd->fd_flags = malloc(sizeof(int) * td->o.nr_files);
memset(bd->fd_flags, 0, sizeof(int) * td->o.nr_files);
bd->fd_flags = malloc(sizeof(int) * td->o.nr_files);
memset(bd->fd_flags, 0, sizeof(int) * td->o.nr_files);
- td->io_ops
->
data = bd;
+ td->io_ops
_
data = bd;
return 0;
}
return 0;
}