]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/f2fs/segment.c
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)
commit4e6a8d9b224f886362ea6e8f6046b541437c944f
tree915e62c7bf4ec07d9aa8d84e91515812484b6e58
parentbb95d9ab2a9d4afd03b59a603cccb2c601f68b78
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