f2fs: avoid casted negative value as shrink count
authorChao Yu <yuchao0@huawei.com>
Tue, 11 Oct 2016 14:31:36 +0000 (22:31 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 23 Nov 2016 20:11:03 +0000 (12:11 -0800)
commit02110a4fd53164db7cce3bb2780dce4d6c4e058f
treec972ca4ed2811563e314963cde480af791459f32
parent3a2ad5672bb36ee9c07bab97dadc8b0f70d391f4
f2fs: avoid casted negative value as shrink count

This patch makes sure it returns a positive value instead of a probable
casted negative value as shrink count.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/shrinker.c