projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stat: Fix another memory leak in add_ddir_status_json()
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 94899552c5b2daa1deeb956c18aa31e2c8a5068d..03f5c21f37c10523362ed2c73af8f57fe1ca691e 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-644,7
+644,7
@@
static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
uint64_t now;
assert(ddir_rw(ddir));
uint64_t now;
assert(ddir_rw(ddir));
- now = utime_since_now(&td->
start
);
+ now = utime_since_now(&td->
epoch
);
/*
* if rate_next_io_time is in the past, need to catch up to rate
/*
* if rate_next_io_time is in the past, need to catch up to rate
@@
-850,7
+850,7
@@
static void setup_strided_zone_mode(struct thread_data *td, struct io_u *io_u)
/*
* See if it's time to switch to a new zone
*/
/*
* See if it's time to switch to a new zone
*/
- if (td->zone_bytes >= td->o.zone_size
&& td->o.zone_skip
) {
+ if (td->zone_bytes >= td->o.zone_size) {
td->zone_bytes = 0;
f->file_offset += td->o.zone_range + td->o.zone_skip;
td->zone_bytes = 0;
f->file_offset += td->o.zone_range + td->o.zone_skip;
@@
-2182,7
+2182,7
@@
void io_u_fill_buffer(struct thread_data *td, struct io_u *io_u,
static int do_sync_file_range(const struct thread_data *td,
struct fio_file *f)
{
static int do_sync_file_range(const struct thread_data *td,
struct fio_file *f)
{
-
off
64_t offset, nbytes;
+
uint
64_t offset, nbytes;
offset = f->first_write;
nbytes = f->last_write - f->first_write;
offset = f->first_write;
nbytes = f->last_write - f->first_write;