diff options
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d24b65014612..f92def2467a6 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -5505,7 +5505,8 @@ insert: | |||
5505 | write_unlock(&em_tree->lock); | 5505 | write_unlock(&em_tree->lock); |
5506 | out: | 5506 | out: |
5507 | 5507 | ||
5508 | trace_btrfs_get_extent(root, em); | 5508 | if (em) |
5509 | trace_btrfs_get_extent(root, em); | ||
5509 | 5510 | ||
5510 | if (path) | 5511 | if (path) |
5511 | btrfs_free_path(path); | 5512 | btrfs_free_path(path); |