aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorChangman Lee <[email protected]>2013-02-25 17:38:02 +0900
committerJaegeuk Kim <[email protected]>2013-03-08 10:02:56 +0900
commit12fc760fd632a96f49e96f519c4aed4eb279bb61 (patch)
tree09d54e3295705601aa0d600fd9a8e94aca444174 /fs/jbd/commit.c
parent47b3bc907328db968bc9b43c41f48f8d1e140750 (diff)
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 <[email protected]> Reviewed-by: Namjae Jeon <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions