Merge branch 'master' of https://github.com/bvanassche/fio
authorJens Axboe <axboe@kernel.dk>
Thu, 27 Sep 2018 15:42:21 +0000 (09:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Sep 2018 15:42:21 +0000 (09:42 -0600)
* 'master' of https://github.com/bvanassche/fio:
  zbd: Fix zbd_zone_nr()

zbd.c

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;
 }
 
 /**