diff options
| author | Chao Yu <yuchao0@huawei.com> | 2016-05-09 19:56:31 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:33:31 +0200 |
| commit | 377cbc53841563ddfd1f9f8a0512c20c4eb957a8 (patch) | |
| tree | 2d61ea44cad9c13bf5832ce2e20583c34f0da1dc /include/linux/vcodec/val_api_private.h | |
| parent | f0ce8ca0996d694e8798f46cf169e32e27094b58 (diff) | |
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>
Conflicts:
fs/f2fs/file.c
Diffstat (limited to 'include/linux/vcodec/val_api_private.h')
0 files changed, 0 insertions, 0 deletions
