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@google.com>
Mon, 25 Sep 2017 22:05:35 +0000 (15:05 -0700)
commit9f99694bb7e0272568e804e96fb4ae5772acc198
tree3b851259e2177b112e297524a50a6d055ed84b80
parente07f457ef777a1af0642b81af98b1e824748b265
f2fs: avoid casted negative value as shrink count

commit 02110a4fd53164db7cce3bb2780dce4d6c4e058f upstream.

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