Commit 913d952e authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Clear space_info full when adding new devices

The full flag on the space info structs tells the allocator not to try
and allocate more chunks because the devices in the FS are fully allocated.

When more devices are added, we need to clear the full flag so the allocator
knows it has more space available.
Signed-off-by: default avatarChris Mason <>
parent 4184ea7f
......@@ -1374,6 +1374,12 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path)
ret = btrfs_add_device(trans, root, device);
* we've got more storage, clear any full flags on the space
* infos
btrfs_commit_transaction(trans, root);
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