Btrfs: confirmation of value is added before trace_btrfs_get_extent() is called

We should confirm the value of extent_map before calling
trace_btrfs_get_extent() because the value of extent_map has the
possibility of NULL.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
This commit is contained in:
Tsutomu Itoh 2012-10-01 03:08:37 -06:00 committed by Chris Mason
parent 18ec90d63f
commit f0bd95ea72

View file

@ -5505,6 +5505,7 @@ insert:
write_unlock(&em_tree->lock);
out:
if (em)
trace_btrfs_get_extent(root, em);
if (path)