]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35620f0938ab9c7e175ad457779dd9cad2bdd37a
tree046e85ec35859068b4b99bd10348ff2c0db64edd
parent9e073e4657b69bcbf7a6bb009b9c6390e7c0600a
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