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 headers: define pct(a,b) once
[fs/lustre-release.git]
/
lustre
/
include
/
lprocfs_status.h
diff --git
a/lustre/include/lprocfs_status.h
b/lustre/include/lprocfs_status.h
index
d42981d
..
865553d
100644
(file)
--- a/
lustre/include/lprocfs_status.h
+++ b/
lustre/include/lprocfs_status.h
@@
-58,6
+58,11
@@
struct lprocfs_vars {
mode_t proc_mode;
};
+static inline u32 pct(s64 a, s64 b)
+{
+ return b ? a * 100 / b : 0;
+}
+
/**
* Append a space separated list of current set flags to str.
*/