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 18:41:23 +0000 (11:41 -0700)
commit596c97672db20009cd448b60823cae52ba780ee2
tree94dd232b0656b79647643e6656317732b86a2cb6
parent0fbb04e9980a149b02a055d2a4b4abaeab2e8244
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