Btrfs: Clear space_info full when adding new devices
authorChris Mason <chris.mason@oracle.com>
Tue, 10 Mar 2009 17:17:18 +0000 (13:17 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 10 Mar 2009 17:17:18 +0000 (13:17 -0400)
commit913d952eb573c3d1f7487e83b5590e13e7cae2bd
treece01f54ffbd6ae871c4e11560ae1c826cffe4d3a
parent4184ea7f908d95f329febc3665cf66da8568b467
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: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c