diff options
author | Chao Yu <yuchao0@huawei.com> | 2016-05-09 13:56:30 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-11 18:56:35 +0200 |
commit | 46008c6d42328710f9beaf5c2b47dc92b1cc1a75 (patch) | |
tree | de93d87eaf6b9a77d97378fd5dea31d2990129e2 /include/sound/control.h | |
parent | f2fs: make atomic/volatile operation exclusive (diff) | |
download | linux-46008c6d42328710f9beaf5c2b47dc92b1cc1a75.tar.xz linux-46008c6d42328710f9beaf5c2b47dc92b1cc1a75.zip |
f2fs: support in batch multi blocks preallocation
This patch introduces reserve_new_blocks to make preallocation of multi
blocks as in batch operation, so it can avoid lots of redundant
operation, result in better performance.
In virtual machine, with rotational device:
time fallocate -l 32G /mnt/f2fs/file
Before:
real 0m4.584s
user 0m0.000s
sys 0m4.580s
After:
real 0m0.292s
user 0m0.000s
sys 0m0.272s
In x86, with SSD:
time fallocate -l 500G $MNT/testfile
Before : 24.758 s
After : 1.604 s
Signed-off-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: fix bugs and add performance numbers measured in x86.]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/sound/control.h')
0 files changed, 0 insertions, 0 deletions