]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: punch hole optimizations: skip un-needed extent lookup
authorAllison Henderson <achender@linux.vnet.ibm.com>
Mon, 18 Jul 2011 03:17:02 +0000 (23:17 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 18 Jul 2011 03:17:02 +0000 (23:17 -0400)
commitc0515a0e70b6c87ad4efc93de8caa88930379286
tree73ae5f70c194399f9c8273d6681e7534400ffdc0
parenta36ab97ea07c4460ca1c234ac50e2092e3512809
ext4: punch hole optimizations: skip un-needed extent lookup

This patch optimizes the punch hole operation by skipping the
tree walking code that is used by truncate.  Since punch hole
is done through map blocks, the path to the extent is already
known in this function, so we do not need to look it up again.

Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c