f2fs: enable small discard by default
authorChao Yu <yuchao0@huawei.com>
Mon, 24 Apr 2017 16:21:35 +0000 (00:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 25 Apr 2017 21:18:45 +0000 (14:18 -0700)
commitd618ebaf0aa83d175658aea5291e0c459d471d39
tree046e85ec35859068b4b99bd10348ff2c0db64edd
parent34e159da418be46986456daf21a339932f349b63
f2fs: enable small discard by default

This patch start to enable 4K granularity small discard by default
when realtime discard is on, so, in seriously fragmented space,
small size discard can be issued in time to avoid useless storage
space occupying of invalid filesystem's data, then performance of
flash storage can be recovered.

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