f2fs: issue discard commands proactively in high fs utilization
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 May 2018 16:58:42 +0000 (09:58 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 May 2018 15:58:59 +0000 (08:58 -0700)
commit8bb4f2535cf7c3e3aeaed8b3c7c7a116844c41db
tree4d0c2001d6637b42bc12bd072b2a58740fb1eda5
parentd6290814b018aa9a81163b4c806935b315041833
f2fs: issue discard commands proactively in high fs utilization

In the high utilization like over 80%, we don't expect huge # of large discard
commands, but do many small pending discards which affects FTL GCs a lot.
Let's issue them in that case.

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