aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorChao Yu <[email protected]>2015-09-17 20:22:44 +0800
committerJaegeuk Kim <[email protected]>2015-10-09 16:20:52 -0700
commitea58711e884c3006e6f61e44d47f0c2d9f0979e1 (patch)
treea2158dd4c7a123ebf2d815292682d6cd41516381 /lib/netdev-notifier-error-inject.c
parent4d1fa815f26ce92dc4710d28f50071174a2340b7 (diff)
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 <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions