diff options
| author | simran singhal <[email protected]> | 2017-02-22 15:02:04 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-03-06 09:17:00 +0100 |
| commit | fce3444aeae22edc2bb6100888be8039a6e9bb5b (patch) | |
| tree | f3c7013b67c950bd888d813e32096da4d1fce346 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 2720ecceb73c9acd66a5644c3de335467d33f49f (diff) | |
staging: lustre: Using macro DIV_ROUND_UP
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)).
It clarifies the divisor calculations. This occurence was detected using
the coccinelle script:
@@
expression e1;
expression e2;
@@
(
- ((e1) + e2 - 1) / (e2)
+ DIV_ROUND_UP(e1,e2)
|
- ((e1) + (e2 - 1)) / (e2)
+ DIV_ROUND_UP(e1,e2)
)
Signed-off-by: simran singhal <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions