ext4: fix missing call to trace_ext4_ext_map_blocks_exit
authorZheng Liu <wenqing.lz@taobao.com>
Thu, 8 Nov 2012 19:47:52 +0000 (14:47 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Nov 2012 19:47:52 +0000 (14:47 -0500)
commit37794732467dd998a34bfce19738ad3ef1f37507
tree98e785b4d2628eb3657138201c5033158b48c89c
parent19b303d8b5a0e8150a4697c01ca03e75a0a17469
ext4: fix missing call to trace_ext4_ext_map_blocks_exit

When ext4_ext_handle_uninitialized_extents(), we will directly return
from ext4_ext_map_blocks().  The trace point of
trace_ext4_ext_map_blocks_exit isn't called, and the user doesn't see
any result.  This patch tries to fix this problem.

Meanwhile in ext4_ext_handle_uninitialized_extents it returns errors
or the number of allocated blocks.  So 'ret' variable can be removed
due to previously modifications.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
fs/ext4/extents.c