]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix potential overflow when adjusting GC cycle
authorChao Yu <yuchao0@huawei.com>
Mon, 7 Aug 2017 15:12:46 +0000 (23:12 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 15 Aug 2017 17:40:14 +0000 (10:40 -0700)
commit6a264658bb0360c1b1eda9e5b1ab8f7dbe930433
treeec5f157c9804945eb46dc13b2fc3ab58d9e03bc6
parent8578ff635a4981a5d11d4b5eb6f1fafb396f96ed
f2fs: fix potential overflow when adjusting GC cycle

While comparing signed and unsigned variables, compiler will converts the
signed value to unsigned one, due to this reason, {in,de}crease_sleep_time
may return overflowed result.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c
fs/f2fs/gc.h
include/trace/events/f2fs.h