diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-01-15 16:00:57 +0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-29 01:20:40 +0400 |
commit | 89d4346a36a00ab1f9bd71f929564e9fc1c7c539 (patch) | |
tree | 4779b5390a6787db371110884c008ab834474ca9 /fs/btrfs | |
parent | 215a63d139b1e04ce4b595eeca84671782eb5758 (diff) | |
download | linux-89d4346a36a00ab1f9bd71f929564e9fc1c7c539.tar.xz |
Btrfs: fix wrong block group in trace during the free space allocation
We allocate the free space from the former block group, not the current
one, so should use the former one to output the trace information.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index b55a4fd13ecc..73b55d94b953 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -6323,7 +6323,8 @@ have_block_group: /* we have a block, we're done */ spin_unlock(&last_ptr->refill_lock); trace_btrfs_reserve_extent_cluster(root, - block_group, search_start, num_bytes); + used_block_group, + search_start, num_bytes); if (used_block_group != block_group) { btrfs_put_block_group(block_group); block_group = used_block_group; |