]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: introduce a batched trim
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 27 Jan 2015 01:41:23 +0000 (17:41 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Feb 2015 01:04:44 +0000 (17:04 -0800)
commita25e1e6f765378dd632558746d9934679a631954
tree9937a96f18dec591769f0fc677587148c24fac9e
parentca4f368b7707f0639f3f0a5e2c0c6d49c117c827
f2fs: introduce a batched trim

This patch introduces a batched trimming feature, which submits split discard
commands.

This is to avoid long latency due to huge trim commands.
If fstrim was triggered ranging from 0 to the end of device, we should lock
all the checkpoint-related mutexes, resulting in very long latency.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
Documentation/filesystems/f2fs.txt
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c