diff options
author | Robin Dong | 2011-07-18 05:27:43 +0200 |
---|---|---|
committer | Theodore Ts'o | 2011-07-18 05:27:43 +0200 |
commit | 015861badd0db43d025bbb538f8fc62dfaf3f18d (patch) | |
tree | e1e7f6ea3f4cd41ecc030f07a4a454141dd2e158 /COPYING | |
parent | ext4: remove unneeded parameter to ext4_ext_remove_space() (diff) | |
download | kernel-qcow2-linux-015861badd0db43d025bbb538f8fc62dfaf3f18d.tar.gz kernel-qcow2-linux-015861badd0db43d025bbb538f8fc62dfaf3f18d.tar.xz kernel-qcow2-linux-015861badd0db43d025bbb538f8fc62dfaf3f18d.zip |
ext4: avoid wasted extent cache lookup if !PUNCH_OUT_EXT
This patch avoids an extraneous lookup of the extent cache
in ext4_ext_map_blocks() when the flag
EXT4_GET_BLOCKS_PUNCH_OUT_EXT is absent.
The existing logic was performing the lookup but not making
use of the result. The patch simply reverses the order of evaluation
in the condition.
Since ext4_ext_in_cache() does not initialize newex on misses, bypassing
its invocation does not introduce any new issue in this regard.
Signed-off-by: Robin Dong <sanbai@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Eric Gouriou <egouriou@google.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions