]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: relax async discard commands more
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 29 Dec 2016 22:07:53 +0000 (14:07 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 29 Jan 2017 03:46:01 +0000 (12:46 +0900)
commit0c19a6fc3217ca55f2e215119fbc59c8eb703157
tree915e62c7bf4ec07d9aa8d84e91515812484b6e58
parentf12b886dfdd04f0666de3c2d1837944db52b1732
f2fs: relax async discard commands more

This patch relaxes async discard commands to avoid waiting its end_io during
checkpoint.
Instead of waiting them during checkpoint, it will be done when actually reusing
them.

Test on initial partition of nvme drive.

 # time fstrim /mnt/test

Before : 6.158s
After : 4.822s

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