Whamcloud - gitweb
LU-10171 headers: define pct(a,b) once 06/34806/2
authorBen Evans <bevans@cray.com>
Wed, 12 Dec 2018 20:20:03 +0000 (15:20 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 8 Jun 2019 02:32:02 +0000 (02:32 +0000)
commitc5dfb1d25d781dbe47b30049d76e2f731b5ef822
tree2656f871d63b8bf1a653c4318f3a884c58c2c557
parented7b716bc3b5b69c38a946d4913aac003c75c8c0
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.

Lustre-change: https://review.whamcloud.com/29852
Lustre-commit: 9b924e86b27df0cb7a6f0d4c04ff96f867413485

Signed-off-by: Ben Evans <bevans@cray.com>
Change-Id: If61132a1096c351a9bcb7debb868351206267535
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34806
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: Oleg Drokin <green@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