Skip to content
Commit 4d207133 authored by Ben Hutchings's avatar Ben Hutchings Committed by Bob Peterson
Browse files

gfs2: Make statistics unsigned, suitable for use with do_div()



None of these statistics can meaningfully be negative, and the
numerator for do_div() must have the type u64.  The generic
implementation of do_div() used on some 32-bit architectures asserts
that, resulting in a compiler error in gfs2_rgrp_congested().

Fixes: 0166b197 ("GFS2: Average in only non-zero round-trip times ...")

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
Acked-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 88ffbf3e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment