diff options
author | 2013-02-25 17:38:02 +0900 | |
---|---|---|
committer | 2013-03-08 10:02:56 +0900 | |
commit | 12fc760fd632a96f49e96f519c4aed4eb279bb61 (patch) | |
tree | 09d54e3295705601aa0d600fd9a8e94aca444174 /tools/perf/scripts/python/syscall-counts.py | |
parent | Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (diff) | |
download | linux-dev-12fc760fd632a96f49e96f519c4aed4eb279bb61.tar.xz linux-dev-12fc760fd632a96f49e96f519c4aed4eb279bb61.zip |
f2fs: fix overflow when calculating utilization on 32-bit
Use div_u64 to fix overflow when calculating utilization.
*long int* is 4-bytes on 32-bit so (user blocks * 100) might be
overflow if disk size is over e.g. 512GB.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions