Commit 89d4346a authored by Miao Xie's avatar Miao Xie Committed by Chris Mason
Browse files

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: default avatarMiao Xie <>
Signed-off-by: default avatarJosef Bacik <>
Signed-off-by: default avatarChris Mason <>
parent 215a63d1
......@@ -6323,7 +6323,8 @@ static noinline int find_free_extent(struct btrfs_root *orig_root,
/* we have a block, we're done */
block_group, search_start, num_bytes);
search_start, num_bytes);
if (used_block_group != block_group) {
block_group = used_block_group;
Supports Markdown
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