Commit f0bd95ea authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by Chris Mason

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: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
parent 18ec90d6
......@@ -5505,6 +5505,7 @@ struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page,
write_unlock(&em_tree->lock);
out:
if (em)
trace_btrfs_get_extent(root, em);
if (path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment