From 5200b0f80c013f7a2905a502da499ebbcaae83ca Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 10 Oct 2020 09:16:51 -0600 Subject: [PATCH] flow: use unsigned long for the counter 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 --- flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow.c b/flow.c index aca051e6..ea6b0ec9 100644 --- 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) -- 2.25.1