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: 0166b197c2
("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>
Этот коммит содержится в:

коммит произвёл
Bob Peterson

родитель
88ffbf3e03
Коммит
4d207133e9
@@ -244,7 +244,7 @@ enum {
|
||||
};
|
||||
|
||||
struct gfs2_lkstats {
|
||||
s64 stats[GFS2_NR_LKSTATS];
|
||||
u64 stats[GFS2_NR_LKSTATS];
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Ссылка в новой задаче
Block a user