diff options
author | 2015-09-17 20:22:44 +0800 | |
---|---|---|
committer | 2015-10-09 16:20:52 -0700 | |
commit | ea58711e884c3006e6f61e44d47f0c2d9f0979e1 (patch) | |
tree | a2158dd4c7a123ebf2d815292682d6cd41516381 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | f2fs: optimize code of f2fs_update_extent_tree_range (diff) | |
download | linux-dev-ea58711e884c3006e6f61e44d47f0c2d9f0979e1.tar.xz linux-dev-ea58711e884c3006e6f61e44d47f0c2d9f0979e1.zip |
f2fs: do in batches truncation in truncate_hole
truncate_data_blocks_range can do in batches truncation which makes all
changes in dnode page content, dnode page status, extent cache, block
count updating together.
But previously, truncate_hole() always truncates one block in dnode page
at a time by invoking truncate_data_blocks_range(,1), which make thing
slow.
This patch changes truncate_hole() to do in batches truncation for all
target blocks in one direct node inside truncate_data_blocks_range, which
can make our punch hole operation in ->fallocate more efficent.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions