commit | 275b66b09e85cf0520dc610dd89706952751a473 | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Mon Aug 29 23:58:34 2016 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Wed Sep 07 17:27:38 2016 -0700 |
tree | 9fc6b695893ea53d227b874cff443c766e56800d | |
parent | 167451efb53c7999fb72591c46f29de09cd8f8b0 [diff] |
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>