summaryrefslogtreecommitdiff
path: root/io_u.c
diff options
context:
space:
mode:
authorAlexander Larin <znahar@yandex-team.ru>2018-02-28 14:25:42 +0300
committerAlexander Larin <znahar@yandex-team.ru>2018-03-01 19:08:30 +0300
commit6cc0e5aa9eddd2487dfa9ac80be1264151058409 (patch)
treee699551e8444730b55c21b44f714ef9bd5442496 /io_u.c
parentcd174b909109e527e41ca42ac761c5f7d29f25e5 (diff)
downloadfio-6cc0e5aa9eddd2487dfa9ac80be1264151058409.tar.gz
fio-6cc0e5aa9eddd2487dfa9ac80be1264151058409.tar.bz2
Fix overflow of counters incremented on each I/O operation
- In the thread_stat struct: uint32_t counters are updated to uint64_t. - In the io_u_plat_entry struct: unsigned int counters are updated to uint64_t. It fixes overflow of these counters. Signed-off-by: Alexander Larin <znahar@yandex-team.ru>
Diffstat (limited to 'io_u.c')
-rw-r--r--io_u.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_u.c b/io_u.c
index b54a79c7..61d09ba8 100644
--- a/io_u.c
+++ b/io_u.c
@@ -1012,7 +1012,7 @@ out:
return 0;
}
-static void __io_u_mark_map(unsigned int *map, unsigned int nr)
+static void __io_u_mark_map(uint64_t *map, unsigned int nr)
{
int idx = 0;