Whamcloud - gitweb
LU-6174 obd: perform proper division 51/36751/5
authorJames Simmons <jsimmons@infradead.org>
Mon, 18 Nov 2019 20:26:39 +0000 (15:26 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 14 Dec 2019 05:57:46 +0000 (05:57 +0000)
commite8f793f620f40eff540b2b49ecab00c0b9de3fc5
tree00f09c8c4bc12f2417521dc91d5e0e409b036fe5
parent3f304b75d24aea0075415affa0c0bef004ef012c
LU-6174 obd: perform proper division

Lustre stats have two files lc_sum and lc_count which are both
s64 so using do_div() is completely wrong. Use div64_s64()
instead.

Change-Id: Ie694c1c6bf79979bff3eae0de9791c81c355ea30
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/36751
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/lprocfs_status.c