Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-10171 lmv: avoid gratuitous 64-bit modulus
[fs/lustre-release.git]
/
lustre
/
include
/
lprocfs_status.h
diff --git
a/lustre/include/lprocfs_status.h
b/lustre/include/lprocfs_status.h
index
acf1bc0
..
3da912c
100644
(file)
--- a/
lustre/include/lprocfs_status.h
+++ b/
lustre/include/lprocfs_status.h
@@
-58,7
+58,7
@@
struct lprocfs_vars {
mode_t proc_mode;
};
-static inline u
32 pct(s64 a, s64
b)
+static inline u
nsigned int pct(unsigned long a, unsigned long
b)
{
return b ? a * 100 / b : 0;
}