]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Make statistics unsigned, suitable for use with do_div()
authorBen Hutchings <ben@decadent.org.uk>
Thu, 27 Aug 2015 17:51:45 +0000 (12:51 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 3 Sep 2015 18:33:32 +0000 (13:33 -0500)
commitc8e3c21955b09bab25eec807410aec0f6811f4b1
tree45de61b850feea62ac24f7891fb82634b920acd5
parente3c2502631394b3df5066d962184cd6ed25b2e4f
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: 4167ac56cbe3 ("GFS2: Average in only non-zero round-trip times ...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/trace_gfs2.h