summaryrefslogtreecommitdiff
path: root/kernel/time
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2017-12-12 18:47:20 +0300
committerBob Peterson <rpeterso@redhat.com>2018-01-17 16:35:47 +0300
commite7fdf0040660c2fa184ef176c02907a98bb6f5f5 (patch)
treeccad68cc5cc6cb7c9406f9b46125f2455ec0b18b /kernel/time
parent8b5860a35c40b344371f07d110f449cf282716ed (diff)
downloadlinux-e7fdf0040660c2fa184ef176c02907a98bb6f5f5.tar.xz
gfs2: Remove minor gfs2_journaled_truncate inefficiencies
First, this function truncates the file in chunks. When the original file size isn't block aligned, each chunk that is truncated will remain be misaligned. This is inefficient. Second, this function doesn't recognize where holes are, so it loops through them. For each chunk of a hole, it creates a new transaction. At least avoid creating another transactions whe the current one is still empty. (An better fix would be to skip large holes, of course.) Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'kernel/time')
0 files changed, 0 insertions, 0 deletions