]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: btrfs_rm_device() should zero mirror SB as well
authorAnand Jain <anand.jain@oracle.com>
Sun, 6 Apr 2014 04:59:07 +0000 (12:59 +0800)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:41 +0000 (17:20 -0700)
commit0140ed6a8318c9a3250b6a8b101cd28888ab0932
treedde05db2c69de9bce804b7f5c650aa8b2094c9e8
parent51d2d7f341574d5c737c1952e8447b601527d41a
btrfs: btrfs_rm_device() should zero mirror SB as well

This fix will ensure all SB copies on the disk is zeroed
when the disk is intentionally removed. This helps to
better manage disks in the user land.

This version of patch also merges the Zach patch as below.

 btrfs: don't double brelse on device rm

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c