projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d60be7d
)
zbd: Fix zbd_zone_nr()
author
Bart Van Assche
<bvanassche@acm.org>
Thu, 27 Sep 2018 15:12:19 +0000
(08:12 -0700)
committer
Bart Van Assche
<bvanassche@acm.org>
Thu, 27 Sep 2018 15:12:19 +0000
(08:12 -0700)
Instead of returning sizeof(struct fio_zone_info) * (zone number),
return the zone number.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
zbd.c
patch
|
blob
|
blame
|
history
diff --git
a/zbd.c
b/zbd.c
index 9c525875ffd5be11c0e479b6df73828a1113b7c6..aa08b81115342342d383e3705aa2c25a17b9f277 100644
(file)
--- a/
zbd.c
+++ b/
zbd.c
@@
-606,7
+606,7
@@
static int zbd_reset_range(struct thread_data *td, const struct fio_file *f,
static unsigned int zbd_zone_nr(struct zoned_block_device_info *zbd_info,
struct fio_zone_info *zone)
{
- return
(uintptr_t) zone - (uintptr_t)
zbd_info->zone_info;
+ return
zone -
zbd_info->zone_info;
}
/**