ext4: refactor code to read the extent tree block
authorTheodore Ts'o <tytso@mit.edu>
Sat, 17 Aug 2013 01:20:41 +0000 (21:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 17 Aug 2013 01:20:41 +0000 (21:20 -0400)
commit7d7ea89e756ea18a3b08cd396e2a4c0c12d473a8
tree8c14a5c1f9e2a14d2de50e07ec97154fa811ac08
parenta361293f5fedea0016a10599f409631a15d47ee7
ext4: refactor code to read the extent tree block

Refactor out the code needed to read the extent tree block into a
single read_extent_tree_block() function.  In addition to simplifying
the code, it also makes sure that we call the ext4_ext_load_extent
tracepoint whenever we need to read an extent tree block from disk.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
fs/ext4/extents.c