aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorRobin Dong <[email protected]>2011-07-17 23:27:43 -0400
committerTheodore Ts'o <[email protected]>2011-07-17 23:27:43 -0400
commit015861badd0db43d025bbb538f8fc62dfaf3f18d (patch)
treee1e7f6ea3f4cd41ecc030f07a4a454141dd2e158 /net/unix/sysctl_net_unix.c
parentc6a0371cbefade85376bbc326d18451860632dce (diff)
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 <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]> Reviewed-by: Lukas Czerner <[email protected]> Reviewed-by: Eric Gouriou <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions