diff options
author | 2024-03-06 23:25:47 +0900 | |
---|---|---|
committer | 2024-03-12 13:09:23 -0700 | |
commit | adc2c8d0b36f8c97cd3bf7c1420f8d61ee08ce4d (patch) | |
tree | ffe2d65633bec23f031e45e3376dc7f83ca35cf8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mul_u64_u64_div_u64: increase precision by conditionally swapping a and b (diff) | |
download | wireguard-linux-adc2c8d0b36f8c97cd3bf7c1420f8d61ee08ce4d.tar.xz wireguard-linux-adc2c8d0b36f8c97cd3bf7c1420f8d61ee08ce4d.zip |
nilfs2: use div64_ul() instead of do_div()
Fixes Coccinelle/coccicheck warnings reported by do_div.cocci.
Compared to do_div(), div64_ul() does not implicitly cast the divisor and
does not unnecessarily calculate the remainder.
Link: https://lkml.kernel.org/r/20240229210456.63234-2-thorsten.blum@toblux.com
Link: https://lkml.kernel.org/r/20240306142547.4612-1-konishi.ryusuke@gmail.com
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions