]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: stop refusing the relocation of chunk 0
authorIlya Dryomov <idryomov@gmail.com>
Tue, 27 Aug 2013 10:50:44 +0000 (13:50 +0300)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:38 +0000 (08:16 -0400)
commit6ac08992533d86b5e4f7d41d9b9d2962bfb85ff0
treeb32a10de047e619ee26b5f9de91cb4343af1c789
parentc0262c253d9da55c3ffd8f7f153fd2e103c8f147
Btrfs: stop refusing the relocation of chunk 0

AFAICT chunk 0 is no longer special, and so it should be restriped just
like every other chunk.  One reason for this change is us refusing the
relocation can lead to filesystems that can only be mounted ro, and
never rw -- see the bugzilla [1] for details.  The other reason is that
device removal code is already doing this: it will happily relocate
chunk 0 is part of shrinking the device.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=60594

Reported-by: Xavier Bassery <xavier@bartica.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c