btrfs: alloc_reserved_file_extent trace point should use extent_root
authorJeff Mahoney <jeffm@suse.com>
Wed, 22 Jun 2016 22:54:27 +0000 (18:54 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Dec 2016 15:06:57 +0000 (16:06 +0100)
Even though a separate root is passed in, we're still operating on the
extent root.  Let's use that for the trace point.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c

index e4b3fc07f1625e47dadef1922716595eba6e9506..e8b8e309e4abbc339db6ed185cb121b78fc96463 100644 (file)
@@ -8105,7 +8105,8 @@ static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
                        ins->objectid, ins->offset);
                BUG();
        }
-       trace_btrfs_reserved_extent_alloc(root, ins->objectid, ins->offset);
+       trace_btrfs_reserved_extent_alloc(fs_info->extent_root,
+                                         ins->objectid, ins->offset);
        return ret;
 }