diff options
author | Chao Yu <yuchao0@huawei.com> | 2016-05-09 14:56:31 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-11 19:56:36 +0300 |
commit | 6e9619499f53b22ead972e476c0e8341c997d929 (patch) | |
tree | 0e026991b79762ea8ed14aa4f537e049a6deded6 /fs/afs/callback.c | |
parent | 46008c6d42328710f9beaf5c2b47dc92b1cc1a75 (diff) | |
download | linux-6e9619499f53b22ead972e476c0e8341c997d929.tar.xz |
f2fs: support in batch fzero in dnode page
This patch tries to speedup fzero_range by making space preallocation and
address removal of blocks in one dnode page as in batch operation.
In virtual machine, with zram driver:
dd if=/dev/zero of=/mnt/f2fs/file bs=1M count=4096
time xfs_io -f /mnt/f2fs/file -c "fzero 0 4096M"
Before:
real 0m3.276s
user 0m0.008s
sys 0m3.260s
After:
real 0m1.568s
user 0m0.000s
sys 0m1.564s
Signed-off-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: consider ENOSPC case]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/afs/callback.c')
0 files changed, 0 insertions, 0 deletions