]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: support async discard
authorChao Yu <yuchao0@huawei.com>
Mon, 29 Aug 2016 15:58:34 +0000 (23:58 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Sep 2016 00:27:38 +0000 (17:27 -0700)
commitb64c2e70d1b3b6cdc875e3ff29f82f9e628529eb
tree9fc6b695893ea53d227b874cff443c766e56800d
parent63888bdbc4615bdf50087f42f0ffdd6835f7910a
f2fs: support async discard

Like most filesystems, f2fs will issue discard command synchronously, so
when user trigger fstrim through ioctl, multiple discard commands will be
issued serially with sync mode, which makes poor performance.

In this patch we try to support async discard, so that all discard
commands can be issued and be waited for endio in batch to improve
performance.

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