zbd: remove dead zone retrieval call
authorJens Axboe <axboe@kernel.dk>
Mon, 13 Sep 2021 20:09:01 +0000 (14:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 13 Sep 2021 20:09:01 +0000 (14:09 -0600)
A previous commit missed to realize that not only was the assignment
useless, that also made the very call to zbd_zone_nr() useless as
well. Remove it.

Fixes: 000ecb5fe36d ("zbd: Removing useless variable assignment")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
zbd.c

diff --git a/zbd.c b/zbd.c
index dd1abc58a6d4d882d41805b8682550c9bf36daad..64415d2b322ef932ece8fc5e1cce124dec9150dc 100644 (file)
--- a/zbd.c
+++ b/zbd.c
@@ -1857,7 +1857,6 @@ enum io_u_action zbd_adjust_block(struct thread_data *td, struct io_u *io_u)
                                       f->file_name);
                                goto eof;
                        }
-                       zbd_zone_nr(f, zb);
                }
                /* Check whether the zone reset threshold has been exceeded */
                if (td->o.zrf.u.f) {