f2fs: avoid value overflow in showing current status
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 8 May 2015 23:37:28 +0000 (16:37 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 May 2015 22:41:44 +0000 (15:41 -0700)
commit3589a9190b927f68339f6c4779196360dd453a70
tree917fc397a4dd0c8e2ba27e6e31ec97675df938f0
parent75cd4e098d178433436abce08146a21647bb4585
f2fs: avoid value overflow in showing current status

This patch fixes overflow when do cat /sys/kernel/debug/f2fs/status.
If a section is relatively large, dist value can be overflowed.

Reported-by: Yossi Goldfill <ygoldfill@radianmemory.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/debug.c