Skip to content

Commit

Permalink
btrfs: alloc_reserved_file_extent trace point should use extent_root
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Mahoney authored and David Sterba committed Dec 6, 2016
1 parent 5112feb commit 2b2e27e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2b2e27e

Please sign in to comment.