Whamcloud - gitweb
LU-10171 headers: define pct(a,b) once 52/29852/10
authorBen Evans <bevans@cray.com>
Wed, 12 Dec 2018 20:20:03 +0000 (15:20 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Jan 2019 04:46:23 +0000 (04:46 +0000)
commit9b924e86b27df0cb7a6f0d4c04ff96f867413485
tree1bd96f52dc857f8bae21e05524c39802a85504b0
parente486703b5278cfd70f31929351f94d519a177135
LU-10171 headers: define pct(a,b) once

pct is defined 6 times in different places.  Define it in one.
Also change it to a static inline to do a better job of
enforcing types.

Signed-off-by: Ben Evans <bevans@cray.com>
Change-Id: If61132a1096c351a9bcb7debb868351206267535
Reviewed-on: https://review.whamcloud.com/29852
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/fld/fld_cache.c
lustre/include/lprocfs_status.h
lustre/llite/lproc_llite.c
lustre/mdt/mdt_lproc.c
lustre/obdclass/genops.c
lustre/osc/lproc_osc.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-zfs/osd_lproc.c