LU-10171 lmv: avoid gratuitous 64-bit modulus
Fix the pct() calculation to use unsigned long arguments, since this
is what callers use. Remove duplicate pct() definition in lproc_mdc.
Don't do a 64-bit modulus of the LNet NID to find the starting MDT
index when this isn't really needed.
Similarly, don't compute the FLD cache usage percentage for a debug
message that is never used.
Fixes:
9b924e86b27d ("LU-10171 headers: define pct(a,b) once")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I34cefd269cb83f563d2f08c32dc3fa1ed5c5a5b1
Reviewed-on: https://review.whamcloud.com/33922
Reviewed-by: Ben Evans <bevans@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>