flow: use unsigned long for the counter
authorJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 15:16:51 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 15:16:51 +0000 (09:16 -0600)
Same size on 64-bit, it'll be 32-bit on 32-bit archs. But we can't
reliably use 64-bit atomics on 32-bit archs.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
flow.c

diff --git a/flow.c b/flow.c
index aca051e6de40bd8b38516c53b6bdeb56eaa16a58..ea6b0ec9b3a39b712c5dec770722d4fceb6bd63d 100644 (file)
--- a/flow.c
+++ b/flow.c
@@ -7,7 +7,7 @@ struct fio_flow {
        unsigned int refs;
        unsigned int id;
        struct flist_head list;
-       unsigned long long flow_counter;
+       unsigned long flow_counter;
        unsigned int total_weight;
 };
 
@@ -90,7 +90,7 @@ static struct fio_flow *flow_get(unsigned int id)
        return flow;
 }
 
-static void flow_put(struct fio_flow *flow, unsigned long long flow_counter,
+static void flow_put(struct fio_flow *flow, unsigned long flow_counter,
                                        unsigned int weight)
 {
        if (!flow_lock)